public static class PlaceHistoryHandler.DefaultHistorian extends java.lang.Object implements PlaceHistoryHandler.Historian
PlaceHistoryHandler.Historian
, based on History
.Constructor and Description |
---|
DefaultHistorian() |
Modifier and Type | Method and Description |
---|---|
HandlerRegistration |
addValueChangeHandler(ValueChangeHandler<java.lang.String> valueChangeHandler)
Adds a
ValueChangeEvent
handler to be informed of changes to the browser's history stack. |
java.lang.String |
getToken() |
void |
newItem(java.lang.String token,
boolean issueEvent)
Adds a new browser history entry.
|
public HandlerRegistration addValueChangeHandler(ValueChangeHandler<java.lang.String> valueChangeHandler)
PlaceHistoryHandler.Historian
ValueChangeEvent
handler to be informed of changes to the browser's history stack.addValueChangeHandler
in interface PlaceHistoryHandler.Historian
valueChangeHandler
- the handlerpublic java.lang.String getToken()
getToken
in interface PlaceHistoryHandler.Historian
public void newItem(java.lang.String token, boolean issueEvent)
PlaceHistoryHandler.Historian
ValueChangeHandler.onValueChange(com.google.gwt.event.logical.shared.ValueChangeEvent)
to be called as well.newItem
in interface PlaceHistoryHandler.Historian