com.google.gwt.app.place
Class PlaceChangeRequestedEvent<P extends Place>
java.lang.Object
com.google.gwt.event.shared.GwtEvent<PlaceChangeRequestedEvent.Handler<P>>
com.google.gwt.app.place.PlaceChangeRequestedEvent<P>
- Type Parameters:
P - the type of the requested place
public class PlaceChangeRequestedEvent<P extends Place>
- extends GwtEvent<PlaceChangeRequestedEvent.Handler<P>>
Experimental API: This class is still under rapid
development, and is very likely to be deleted. Use it at your own risk.
Event thrown when the user may go to a new place in the app. May be rejected.
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
TYPE
public static final GwtEvent.Type<PlaceChangeRequestedEvent.Handler<?>> TYPE
PlaceChangeRequestedEvent
public PlaceChangeRequestedEvent(P newPlace)
getAssociatedType
public GwtEvent.Type<PlaceChangeRequestedEvent.Handler<P>> getAssociatedType()
- Description copied from class:
GwtEvent
- Returns the type used to register this event. Used by handler manager to
dispatch events to the correct handlers.
- Specified by:
getAssociatedType in class GwtEvent<PlaceChangeRequestedEvent.Handler<P extends Place>>
- Returns:
- the type
getNewPlace
public P getNewPlace()
isRejected
public boolean isRejected()
reject
public void reject()