|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.gwt.app.place.ActivityManager<P>
P - the type of Place objects that this ActivityManager can
map to Activitiespublic class ActivityManager<P extends Place>
Experimental API: This class is still under rapid development, and is very likely to be deleted. Use it at your own risk.
ManagesActivity objects that should be kicked off in response to
PlaceChangeEvent events. Each activity can start itself
asynchronously, and provides a widget to be shown when it's ready to run.
| Constructor Summary | |
|---|---|
ActivityManager(ActivityMapper<P> mapper,
HandlerManager eventBus)
Create an ActivityManager. |
|
| Method Summary | |
|---|---|
void |
onPlaceChange(PlaceChangeEvent<P> event)
Deactive the current activity, find the next one from our ActivityMapper, and start it. |
void |
onPlaceChangeRequested(PlaceChangeRequestedEvent<P> event)
Reject the place change if the current is not willing to stop. |
void |
setDisplay(Activity.Display display)
Sets the display for the receiver, and has the side effect of starting or stopping its monitoring the event bus for place change events. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ActivityManager(ActivityMapper<P> mapper,
HandlerManager eventBus)
setDisplay(com.google.gwt.app.place.Activity.Display) and
#activate.
mapper - finds the Activity for a given PlaceeventBus - source of PlaceChangeEvent and
PlaceChangeRequestedEvent events.| Method Detail |
|---|
public void onPlaceChange(PlaceChangeEvent<P> event)
onPlaceChange in interface PlaceChangeEvent.Handler<P extends Place>PlaceChangeEvent.Handler.onPlaceChange(PlaceChangeEvent)public void onPlaceChangeRequested(PlaceChangeRequestedEvent<P> event)
onPlaceChangeRequested in interface PlaceChangeRequestedEvent.Handler<P extends Place>PlaceChangeRequestedEvent.Handler.onPlaceChangeRequested(PlaceChangeRequestedEvent)public void setDisplay(Activity.Display display)
If you are disposing of an ActivityManager, it is important to call setDisplay(null) to get it to deregister from the event bus, so that it can be garbage collected.
display -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||