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

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      com.google.gwt.event.shared.HandlerRegistration addValueChangeHandler​(com.google.gwt.event.logical.shared.ValueChangeHandler<String> valueChangeHandler)
      Adds a ValueChangeEvent handler to be informed of changes to the browser's history stack.
      String getToken()  
      void newItem​(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 a ValueChangeEvent handler 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 cause ValueChangeHandler.onValueChange(com.google.gwt.event.logical.shared.ValueChangeEvent) to be called as well.