Package com.google.gwt.place.shared
Class PlaceChangeEvent
- java.lang.Object
-
- com.google.web.bindery.event.shared.Event<H>
-
- com.google.gwt.event.shared.GwtEvent<PlaceChangeEvent.Handler>
-
- com.google.gwt.place.shared.PlaceChangeEvent
-
public class PlaceChangeEvent extends GwtEvent<PlaceChangeEvent.Handler>
Event thrown when the user has reached a new location in the app.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfacePlaceChangeEvent.HandlerImplemented by handlers of PlaceChangeEvent.-
Nested classes/interfaces inherited from class com.google.gwt.event.shared.GwtEvent
GwtEvent.Type<H>
-
-
Field Summary
Fields Modifier and Type Field Description static GwtEvent.Type<PlaceChangeEvent.Handler>TYPEA singleton instance of Type<Handler>.
-
Constructor Summary
Constructors Constructor Description PlaceChangeEvent(Place newPlace)Constructs a PlaceChangeEvent for the givenPlace.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddispatch(PlaceChangeEvent.Handler handler)Should only be called byHandlerManager.GwtEvent.Type<PlaceChangeEvent.Handler>getAssociatedType()Returns theEvent.Typeused to register this event, allowing anEventBusto find handlers of the appropriate class.PlacegetNewPlace()Return the newPlace.-
Methods inherited from class com.google.gwt.event.shared.GwtEvent
assertLive, getSource, isLive, kill, revive
-
Methods inherited from class com.google.web.bindery.event.shared.Event
setSource, toDebugString, toString
-
-
-
-
Field Detail
-
TYPE
public static final GwtEvent.Type<PlaceChangeEvent.Handler> TYPE
A singleton instance of Type<Handler>.
-
-
Method Detail
-
getAssociatedType
public GwtEvent.Type<PlaceChangeEvent.Handler> getAssociatedType()
Description copied from class:EventReturns theEvent.Typeused to register this event, allowing anEventBusto find handlers of the appropriate class.- Specified by:
getAssociatedTypein classGwtEvent<PlaceChangeEvent.Handler>- Returns:
- the type
-
dispatch
protected void dispatch(PlaceChangeEvent.Handler handler)
Description copied from class:GwtEventShould only be called byHandlerManager. In other words, do not use or call.- Specified by:
dispatchin classGwtEvent<PlaceChangeEvent.Handler>- Parameters:
handler- handler- See Also:
EventBus.dispatchEvent(Event, Object)
-
-