com.googlecode.jpattern.gwt.client.view
Class SwapWidgetShowViewStrategy<T extends IView>

java.lang.Object
  extended by com.googlecode.jpattern.gwt.client.view.SwapWidgetShowViewStrategy<T>
All Implemented Interfaces:
IShowViewStrategy<T>

public class SwapWidgetShowViewStrategy<T extends IView>
extends Object
implements IShowViewStrategy<T>

A strategy that shows a temporary image while asynchronous operations are performed.

Author:
Francesco Cina 19/lug/2011

Constructor Summary
SwapWidgetShowViewStrategy(T view, com.google.gwt.user.client.ui.HasWidgets container, com.google.gwt.user.client.ui.Widget temporaryWidget)
           
 
Method Summary
 T getView()
          Return the view associated with the strategy
 void onLoadCompleted()
          This is called when a started asynchronous action ends its execution
 void onLoadStart()
          this is called when an asynchronous action begins
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SwapWidgetShowViewStrategy

public SwapWidgetShowViewStrategy(T view,
                                  com.google.gwt.user.client.ui.HasWidgets container,
                                  com.google.gwt.user.client.ui.Widget temporaryWidget)
Method Detail

getView

public T getView()
Description copied from interface: IShowViewStrategy
Return the view associated with the strategy

Specified by:
getView in interface IShowViewStrategy<T extends IView>
Returns:

onLoadStart

public void onLoadStart()
Description copied from interface: IShowViewStrategy
this is called when an asynchronous action begins

Specified by:
onLoadStart in interface IShowViewStrategy<T extends IView>

onLoadCompleted

public void onLoadCompleted()
Description copied from interface: IShowViewStrategy
This is called when a started asynchronous action ends its execution

Specified by:
onLoadCompleted in interface IShowViewStrategy<T extends IView>


Copyright © 2011. All Rights Reserved.