Package org.uberfire.client.mvp
Interface PlaceHistoryHandler.Historian
-
- All Known Implementing Classes:
PlaceHistoryHandler.DefaultHistorian
- Enclosing class:
- PlaceHistoryHandler
public static interface PlaceHistoryHandler.HistorianOptional 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 onHistory.
-
-
Method Summary
All Methods Instance Methods Abstract 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
com.google.gwt.event.shared.HandlerRegistration addValueChangeHandler(com.google.gwt.event.logical.shared.ValueChangeHandler<String> valueChangeHandler)
Adds aValueChangeEventhandler to be informed of changes to the browser's history stack.- Parameters:
valueChangeHandler- the handler- Returns:
- the registration used to remove this value change handler
-
getToken
String getToken()
- Returns:
- the current history token.
-
newItem
void newItem(String token, boolean issueEvent)
Adds a new browser history entry. Calling this method will causeValueChangeHandler.onValueChange(com.google.gwt.event.logical.shared.ValueChangeEvent)to be called as well.
-
-