Class PushStateHistorian

  • All Implemented Interfaces:
    com.google.gwt.event.logical.shared.HasValueChangeHandlers<String>, com.google.gwt.event.shared.HasHandlers, com.google.gwt.place.shared.PlaceHistoryHandler.Historian

    public class PushStateHistorian
    extends Object
    implements com.google.gwt.place.shared.PlaceHistoryHandler.Historian, com.google.gwt.event.logical.shared.HasValueChangeHandlers<String>
    • Constructor Detail

      • PushStateHistorian

        public PushStateHistorian()
    • Method Detail

      • setRelativePath

        public static void setRelativePath​(String prelativePath)
        Call this method in your entry point or bootstrapper to set the relative path of your application.
        Parameters:
        prelativePath - - the relative path of your app.
      • getRelativePath

        public static String getRelativePath()
      • fireEvent

        public void fireEvent​(com.google.gwt.event.shared.GwtEvent<?> pevent)
        Specified by:
        fireEvent in interface com.google.gwt.event.shared.HasHandlers
      • addValueChangeHandler

        public com.google.gwt.event.shared.HandlerRegistration addValueChangeHandler​(com.google.gwt.event.logical.shared.ValueChangeHandler<String> pvalueChangeHandler)
        Specified by:
        addValueChangeHandler in interface com.google.gwt.event.logical.shared.HasValueChangeHandlers<String>
        Specified by:
        addValueChangeHandler in interface com.google.gwt.place.shared.PlaceHistoryHandler.Historian
      • getToken

        public String getToken()
        Specified by:
        getToken in interface com.google.gwt.place.shared.PlaceHistoryHandler.Historian
      • newItem

        public void newItem​(String ptoken,
                            boolean pissueEvent)
        Specified by:
        newItem in interface com.google.gwt.place.shared.PlaceHistoryHandler.Historian
      • replaceItem

        public static void replaceItem​(String pnewToken,
                                       boolean pfireEvent)