public interface Activity
ActivityManager
, in response to
PlaceChangeEvent
events as the user
navigates through the app.Modifier and Type | Method and Description |
---|---|
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.
|
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<H>, H)
.
panel
- the panel to display this activity's widget when it is readyeventBus
- the event bus