Package com.google.gwt.place.shared
Class PlaceHistoryHandler.DefaultHistorian
java.lang.Object
com.google.gwt.place.shared.PlaceHistoryHandler.DefaultHistorian
- All Implemented Interfaces:
PlaceHistoryHandler.Historian
- Enclosing class:
PlaceHistoryHandler
public static class PlaceHistoryHandler.DefaultHistorian
extends Object
implements PlaceHistoryHandler.Historian
Default implementation of
PlaceHistoryHandler.Historian
, based on History
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddValueChangeHandler
(ValueChangeHandler<String> valueChangeHandler) Adds aValueChangeEvent
handler to be informed of changes to the browser's history stack.getToken()
void
Adds a new browser history entry.
-
Constructor Details
-
DefaultHistorian
public DefaultHistorian()
-
-
Method Details
-
getToken
- Specified by:
getToken
in interfacePlaceHistoryHandler.Historian
- Returns:
- the current history token.
-
newItem
Description copied from interface:PlaceHistoryHandler.Historian
Adds a new browser history entry. Calling this method will causeValueChangeHandler.onValueChange(com.google.gwt.event.logical.shared.ValueChangeEvent)
to be called as well.- Specified by:
newItem
in interfacePlaceHistoryHandler.Historian