com.google.gwt.app.place
Class PlaceChangeEvent<P extends Place>

java.lang.Object
  extended by com.google.gwt.event.shared.GwtEvent<PlaceChangeEvent.Handler<P>>
      extended by com.google.gwt.app.place.PlaceChangeEvent<P>
Type Parameters:
P - the type of the new place

public class PlaceChangeEvent<P extends Place>
extends GwtEvent<PlaceChangeEvent.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 has reached a new location in the app.


Nested Class Summary
static interface PlaceChangeEvent.Handler<P extends Place>
          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
           
 
Constructor Summary
PlaceChangeEvent(P newPlace)
           
 
Method Summary
 GwtEvent.Type<PlaceChangeEvent.Handler<P>> getAssociatedType()
          Returns the type used to register this event.
 P getNewPlace()
           
 
Methods inherited from class com.google.gwt.event.shared.GwtEvent
getSource, toDebugString, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TYPE

public static final GwtEvent.Type<PlaceChangeEvent.Handler<?>> TYPE
Constructor Detail

PlaceChangeEvent

public PlaceChangeEvent(P newPlace)
Method Detail

getAssociatedType

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

getNewPlace

public P getNewPlace()