API Reference 0.3.24dart_web_toolkit_placeDefaultHistorian

DefaultHistorian class

Default implementation of {@link Historian}, based on {@link History}.

class DefaultHistorian implements Historian {
 
 HandlerRegistration addValueChangeHandler(ValueChangeHandler<String> valueChangeHandler) {
   return History.addValueChangeHandler(valueChangeHandler);
 }

 String getToken() {
   return History.getToken();
 }

 void newItem(String token, bool issueEvent) {
   History.newItem(token, issueEvent);
 }
}

Implements

Historian

Methods

HandlerRegistration addValueChangeHandler(ValueChangeHandler<String> valueChangeHandler) #

Adds a {@link com.google.gwt.event.logical.shared.ValueChangeEvent} handler to be informed of changes to the browser's history stack.

@param valueChangeHandler the handler @return the registration used to remove this value change handler

docs inherited from Historian
HandlerRegistration addValueChangeHandler(ValueChangeHandler<String> valueChangeHandler) {
 return History.addValueChangeHandler(valueChangeHandler);
}

String getToken() #

@return the current history token.

docs inherited from Historian
String getToken() {
 return History.getToken();
}

void newItem(String token, bool issueEvent) #

Adds a new browser history entry. Calling this method will cause {@link ValueChangeHandler#onValueChange(com.google.gwt.event.logical.shared.ValueChangeEvent)} to be called as well.

docs inherited from Historian
void newItem(String token, bool issueEvent) {
 History.newItem(token, issueEvent);
}