public class PlaceHistoryHandler
extends java.lang.Object
PlaceChangeEvents and
History events and keep them in sync.| Modifier and Type | Class and Description |
|---|---|
static class |
PlaceHistoryHandler.DefaultHistorian
Default implementation of
PlaceHistoryHandler.Historian, based on History. |
static interface |
PlaceHistoryHandler.Historian
Optional delegate in charge of History related events.
|
| Constructor and Description |
|---|
PlaceHistoryHandler(PlaceHistoryMapper mapper)
Create a new PlaceHistoryHandler with a
PlaceHistoryHandler.DefaultHistorian. |
PlaceHistoryHandler(PlaceHistoryMapper mapper,
PlaceHistoryHandler.Historian historian)
Create a new PlaceHistoryHandler.
|
| Modifier and Type | Method and Description |
|---|---|
void |
handleCurrentHistory()
Handle the current history token.
|
(package private) java.util.logging.Logger |
log()
Visible for testing.
|
HandlerRegistration |
register(PlaceController placeController,
EventBus eventBus,
Place defaultPlace)
Deprecated.
|
HandlerRegistration |
register(PlaceController placeController,
EventBus eventBus,
Place defaultPlace)
Initialize this place history handler.
|
public PlaceHistoryHandler(PlaceHistoryMapper mapper)
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.mapper - a PlaceHistoryMapper instancepublic PlaceHistoryHandler(PlaceHistoryMapper mapper, PlaceHistoryHandler.Historian historian)
mapper - a PlaceHistoryMapper instancehistorian - a PlaceHistoryHandler.Historian instancepublic void handleCurrentHistory()
@Deprecated public HandlerRegistration register(PlaceController placeController, EventBus eventBus, Place defaultPlace)
register(PlaceController, EventBus, Place)EventBus.public HandlerRegistration register(PlaceController placeController, EventBus eventBus, Place defaultPlace)
java.util.logging.Logger log()