|
GWT 2.7.0 | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
public interface Activity
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.
| Method Summary | |
|---|---|
java.lang.String |
mayStop()
Called when the user is trying to navigate away from this activity. |
void |
onCancel()
Called when start(com.google.gwt.user.client.ui.AcceptsOneWidget, com.google.gwt.event.shared.EventBus) 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(AcceptsOneWidget panel,
EventBus eventBus)
Called when the Activity should ready its widget for the user. |
| Method Detail |
|---|
java.lang.String mayStop()
void onCancel()
start(com.google.gwt.user.client.ui.AcceptsOneWidget, com.google.gwt.event.shared.EventBus) has not yet replied to its callback, but the
user has lost interest.
void onStop()
void start(AcceptsOneWidget panel,
EventBus eventBus)
AcceptsOneWidget.setWidget(com.google.gwt.user.client.ui.IsWidget) on the given panel.
Any handlers attached to the provided event bus will be de-registered when
the activity is stopped, so activities will rarely need to hold on to the
HandlerRegistration
instances returned by EventBus.addHandler(com.google.web.bindery.event.shared.Event.Type.
panel - the panel to display this activity's widget when it is readyeventBus - the event bus
|
GWT 2.7.0 | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||