java.lang.Object | |
↳ | com.google.gwt.activity.shared.ActivityManager |
Manages Activity
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.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Create an ActivityManager.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Deactivate the current activity, find the next one from our ActivityMapper,
and start it.
| |||||||||||
Reject the place change if the current activity is not willing to stop.
| |||||||||||
Sets the display for the receiver, and has the side effect of starting or
stopping its monitoring the event bus for place change events.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface com.google.gwt.place.shared.PlaceChangeEvent.Handler | |||||||||||
From interface com.google.gwt.place.shared.PlaceChangeRequestEvent.Handler |
Create an ActivityManager. Next call setDisplay(AcceptsOneWidget)
.
mapper | finds the Activity for a given
Place |
---|---|
eventBus | source of PlaceChangeEvent and
PlaceChangeRequestEvent events.
|
Deactivate the current activity, find the next one from our ActivityMapper, and start it.
The current activity's widget will be hidden immediately, which can cause flicker if the next activity provides its widget asynchronously. That can be minimized by decent caching. Perenially slow activities might mitigate this by providing a widget immediately, with some kind of "loading" treatment.
event | the PlaceChangeEvent
|
---|
Reject the place change if the current activity is not willing to stop.
event | the PlaceChangeRequestEvent
|
---|
Sets the display for the receiver, and has the side effect of starting or stopping its monitoring the event bus for place change events.
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 | an instance of AcceptsOneWidget |
---|