public static class PlaceHistoryHandler.DefaultHistorian extends Object implements PlaceHistoryHandler.Historian
PlaceHistoryHandler.Historian
, based on History
.Constructor and Description |
---|
DefaultHistorian() |
Modifier and Type | Method and Description |
---|---|
HandlerRegistration |
addValueChangeHandler(ValueChangeHandler<String> valueChangeHandler)
Adds a
ValueChangeEvent
handler to be informed of changes to the browser's history stack. |
String |
getToken() |
void |
newItem(String token,
boolean issueEvent)
Adds a new browser history entry.
|
public HandlerRegistration addValueChangeHandler(ValueChangeHandler<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 String getToken()
getToken
in interface PlaceHistoryHandler.Historian
public void newItem(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
Copyright © 2018. All rights reserved.