|
GWT 2.7.0 | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.google.gwt.place.shared.PlaceController
public class PlaceController
In charge of the user's location in the app.
| Nested Class Summary | |
|---|---|
static class |
PlaceController.DefaultDelegate
Default implementation of PlaceController.DefaultDelegate, based on Window. |
static interface |
PlaceController.Delegate
Optional delegate in charge of Window-related events. |
| Constructor Summary | |
|---|---|
PlaceController(EventBus eventBus)
Deprecated. use PlaceController(EventBus) |
|
PlaceController(EventBus eventBus)
Create a new PlaceController with a PlaceController.DefaultDelegate. |
|
PlaceController(EventBus eventBus,
PlaceController.Delegate delegate)
Deprecated. use PlaceController(EventBus, Delegate) |
|
PlaceController(EventBus eventBus,
PlaceController.Delegate delegate)
Create a new PlaceController. |
|
| Method Summary | |
|---|---|
Place |
getWhere()
Returns the current place. |
void |
goTo(Place newPlace)
Request a change to a new place. |
(package private) java.util.logging.Logger |
log()
Visible for testing. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
@Deprecated public PlaceController(EventBus eventBus)
PlaceController(EventBus)
EventBus.
@Deprecated
public PlaceController(EventBus eventBus,
PlaceController.Delegate delegate)
PlaceController(EventBus, Delegate)
EventBus.
public PlaceController(EventBus eventBus)
PlaceController.DefaultDelegate. The
DefaultDelegate is created via a call to GWT.create(), so an alternative
default implementation can be provided through <replace-with> rules
in a .gwt.xml file.
eventBus - the EventBus
public PlaceController(EventBus eventBus,
PlaceController.Delegate delegate)
eventBus - the EventBusdelegate - the PlaceController.DefaultDelegate in charge of Window-related events| Method Detail |
|---|
public Place getWhere()
Place instancepublic void goTo(Place newPlace)
PlaceChangeRequestEvent will be posted to the event
bus. If any receivers post a warning message to that event, it will be
presented to the user via PlaceController.DefaultDelegate.confirm(String) (which is
typically a call to Window.confirm(String)). If she cancels, the
current location will not change. Otherwise, the location changes and a
PlaceChangeEvent is posted announcing the new place.
newPlace - a Place instancejava.util.logging.Logger log()
|
GWT 2.7.0 | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||