public class

PlaceChangeEvent

extends GwtEvent<H extends EventHandler>
java.lang.Object
   ↳ com.google.gwt.event.shared.GwtEvent<H extends com.google.gwt.event.shared.EventHandler>
     ↳ com.google.gwt.place.shared.PlaceChangeEvent

Class Overview

Event thrown when the user has reached a new location in the app.

Summary

Nested Classes
interface PlaceChangeEvent.Handler Implemented by handlers of PlaceChangeEvent. 
Fields
public static final Type<PlaceChangeEvent.Handler> TYPE A singleton instance of Type<Handler>.
Public Constructors
PlaceChangeEvent(Place newPlace)
Constructs a PlaceChangeEvent for the given Place.
Public Methods
Type<PlaceChangeEvent.Handler> getAssociatedType()
Returns the type used to register this event.
Place getNewPlace()
Return the new Place.
Protected Methods
void dispatch(PlaceChangeEvent.Handler handler)
Should only be called by HandlerManager.
[Expand]
Inherited Methods
From class com.google.gwt.event.shared.GwtEvent
From class java.lang.Object

Fields

public static final Type<PlaceChangeEvent.Handler> TYPE

A singleton instance of Type<Handler>.

Public Constructors

public PlaceChangeEvent (Place newPlace)

Constructs a PlaceChangeEvent for the given Place.

Parameters
newPlace a Place instance

Public Methods

public Type<PlaceChangeEvent.Handler> getAssociatedType ()

Returns the type used to register this event. Used by handler manager to dispatch events to the correct handlers.

Returns
  • the type

public Place getNewPlace ()

Return the new Place.

Returns

Protected Methods

protected void dispatch (PlaceChangeEvent.Handler handler)

Should only be called by HandlerManager. In other words, do not use or call.

Parameters
handler handler