GWT 0.0.0

com.google.gwt.place.shared
Class PlaceChangeEvent

java.lang.Object
  extended by com.google.gwt.event.shared.GwtEvent<PlaceChangeEvent.Handler>
      extended by 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
static interface PlaceChangeEvent.Handler
          Implemented by handlers of PlaceChangeEvent.
 
Nested classes/interfaces inherited from class com.google.gwt.event.shared.GwtEvent
GwtEvent.Type<H>
 
Field Summary
static GwtEvent.Type<PlaceChangeEvent.Handler> TYPE
          A singleton instance of Type<Handler>.
 
Constructor Summary
PlaceChangeEvent(Place newPlace)
          Constructs a PlaceChangeEvent for the given Place.
 
Method Summary
protected  void dispatch(PlaceChangeEvent.Handler handler)
          Should only be called by HandlerManager.
 GwtEvent.Type<PlaceChangeEvent.Handler> getAssociatedType()
          Returns the type used to register this event.
 Place getNewPlace()
          Return the new Place.
 
Methods inherited from class com.google.gwt.event.shared.GwtEvent
assertLive, getSource, isLive, kill, revive, toDebugString, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TYPE

public static final GwtEvent.Type<PlaceChangeEvent.Handler> TYPE
A singleton instance of Type<Handler>.

Constructor Detail

PlaceChangeEvent

public PlaceChangeEvent(Place newPlace)
Constructs a PlaceChangeEvent for the given Place.

Parameters:
newPlace - a Place instance
Method Detail

getAssociatedType

public GwtEvent.Type<PlaceChangeEvent.Handler> 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<PlaceChangeEvent.Handler>
Returns:
the type

getNewPlace

public Place getNewPlace()
Return the new Place.

Returns:
a Place instance

dispatch

protected void dispatch(PlaceChangeEvent.Handler handler)
Description copied from class: GwtEvent
Should only be called by HandlerManager. In other words, do not use or call.

Specified by:
dispatch in class GwtEvent<PlaceChangeEvent.Handler>
Parameters:
handler - handler

GWT 0.0.0