Package org.uberfire.client.mvp
Class PlaceHistoryHandler.DefaultHistorian
- java.lang.Object
-
- org.uberfire.client.mvp.PlaceHistoryHandler.DefaultHistorian
-
- All Implemented Interfaces:
PlaceHistoryHandler.Historian
- Enclosing class:
- PlaceHistoryHandler
public static class PlaceHistoryHandler.DefaultHistorian extends Object implements PlaceHistoryHandler.Historian
Default implementation ofPlaceHistoryHandler.Historian, based onHistory.
-
-
Constructor Summary
Constructors Constructor Description DefaultHistorian()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.google.gwt.event.shared.HandlerRegistrationaddValueChangeHandler(com.google.gwt.event.logical.shared.ValueChangeHandler<String> valueChangeHandler)Adds aValueChangeEventhandler to be informed of changes to the browser's history stack.StringgetToken()voidnewItem(String token, boolean issueEvent)Adds a new browser history entry.
-
-
-
Method Detail
-
addValueChangeHandler
public com.google.gwt.event.shared.HandlerRegistration addValueChangeHandler(com.google.gwt.event.logical.shared.ValueChangeHandler<String> valueChangeHandler)
Description copied from interface:PlaceHistoryHandler.HistorianAdds aValueChangeEventhandler to be informed of changes to the browser's history stack.- Specified by:
addValueChangeHandlerin interfacePlaceHistoryHandler.Historian- Parameters:
valueChangeHandler- the handler- Returns:
- the registration used to remove this value change handler
-
getToken
public String getToken()
- Specified by:
getTokenin interfacePlaceHistoryHandler.Historian- Returns:
- the current history token.
-
newItem
public void newItem(String token, boolean issueEvent)
Description copied from interface:PlaceHistoryHandler.HistorianAdds 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:
newItemin interfacePlaceHistoryHandler.Historian
-
-