public class PlaceHistoryHandler extends Object
PlaceChangeEvent
s 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.
|
HandlerRegistration |
register(PlaceController placeController,
EventBus eventBus,
Place defaultPlace)
Deprecated.
|
com.google.web.bindery.event.shared.HandlerRegistration |
register(PlaceController placeController,
com.google.web.bindery.event.shared.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 com.google.web.bindery.event.shared.HandlerRegistration register(PlaceController placeController, com.google.web.bindery.event.shared.EventBus eventBus, Place defaultPlace)
Copyright © 2018. All rights reserved.