Package com.google.gwt.place.shared
Interface PlaceHistoryHandler.Historian
- All Known Implementing Classes:
PlaceHistoryHandler.DefaultHistorian
- Enclosing class:
PlaceHistoryHandler
public static interface PlaceHistoryHandler.Historian
Optional delegate in charge of History related events. Provides nice
isolation for unit testing, and allows pre- or post-processing of tokens.
Methods correspond to the like named methods on
History
.-
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.
-
Method Details
-
getToken
String getToken()- Returns:
- the current history token.
-
newItem
Adds a new browser history entry. Calling this method will causeValueChangeHandler.onValueChange(com.google.gwt.event.logical.shared.ValueChangeEvent)
to be called as well.