public class

PlaceHistoryHandler

extends Object
java.lang.Object
   ↳ com.google.gwt.place.shared.PlaceHistoryHandler

Class Overview

Monitors PlaceChangeEvents and History events and keep them in sync.

Summary

Nested Classes
class PlaceHistoryHandler.DefaultHistorian Default implementation of PlaceHistoryHandler.DefaultHistorian, based on History
interface PlaceHistoryHandler.Historian Optional delegate in charge of History related events. 
Public Constructors
PlaceHistoryHandler(PlaceHistoryMapper mapper)
Create a new PlaceHistoryHandler with a PlaceHistoryHandler.DefaultHistorian.
PlaceHistoryHandler(PlaceHistoryMapper mapper, PlaceHistoryHandler.Historian historian)
Create a new PlaceHistoryHandler.
Public Methods
void handleCurrentHistory()
Handle the current history token.
HandlerRegistration register(PlaceController placeController, EventBus eventBus, Place defaultPlace)
Initialize this place history handler.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public PlaceHistoryHandler (PlaceHistoryMapper mapper)

Create a new PlaceHistoryHandler with a PlaceHistoryHandler.DefaultHistorian. The DefaultHistorian is created via a call to GWT.create(), so an alternative default implementation can be provided through <replace-with> rules in a gwt.xml file.

Parameters
mapper a PlaceHistoryMapper instance

public PlaceHistoryHandler (PlaceHistoryMapper mapper, PlaceHistoryHandler.Historian historian)

Create a new PlaceHistoryHandler.

Parameters
mapper a PlaceHistoryMapper instance
historian a PlaceHistoryHandler.Historian instance

Public Methods

public void handleCurrentHistory ()

Handle the current history token. Typically called at application start, to ensure bookmark launches work.

public HandlerRegistration register (PlaceController placeController, EventBus eventBus, Place defaultPlace)

Initialize this place history handler.

Returns
  • a registration object to de-register the handler