com.google.gwt.app.place
Interface Activity

All Known Implementing Classes:
AbstractActivity, AbstractRecordEditActivity, AbstractRecordListActivity

public interface Activity

Experimental API: This class is still under rapid development, and is very likely to be deleted. Use it at your own risk.

Implemented by objects that control a piece of user interface, with a life cycle managed by an ActivityManager, in response to PlaceChangeEvent events as the user navigates through the app.


Nested Class Summary
static interface Activity.Display
          Implemented by objects responsible for displaying the widgets that activities drive.
 
Method Summary
 void onCancel()
          Called when start(com.google.gwt.app.place.Activity.Display) has not yet replied to its callback, but the user has lost interest.
 void onStop()
          Called when the Activity's widget has been removed from view.
 void start(Activity.Display panel)
          Called when the Activity should prepare its IsWidget for the user.
 boolean willStop()
           
 

Method Detail

onCancel

void onCancel()
Called when start(com.google.gwt.app.place.Activity.Display) has not yet replied to its callback, but the user has lost interest.


onStop

void onStop()
Called when the Activity's widget has been removed from view.


start

void start(Activity.Display panel)
Called when the Activity should prepare its IsWidget for the user. Once the widget is ready (typically after an RPC response has been received), receiver should present it via Activity.Display.showActivityWidget(IsWidget).

Parameters:
panel - the panel to display this activity's widget when it is ready

willStop

boolean willStop()