Class PushStateHistorian
- java.lang.Object
-
- com.wallissoftware.pushstate.client.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 Summary
Constructors Constructor Description PushStateHistorian()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.google.gwt.event.shared.HandlerRegistrationaddValueChangeHandler(com.google.gwt.event.logical.shared.ValueChangeHandler<String> pvalueChangeHandler)voidfireEvent(com.google.gwt.event.shared.GwtEvent<?> pevent)static StringgetRelativePath()StringgetToken()voidnewItem(String ptoken, boolean pissueEvent)static voidreplaceItem(String pnewToken, boolean pfireEvent)static voidsetRelativePath(String prelativePath)Call this method in your entry point or bootstrapper to set the relative path of your application.
-
-
-
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:
fireEventin interfacecom.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:
addValueChangeHandlerin interfacecom.google.gwt.event.logical.shared.HasValueChangeHandlers<String>- Specified by:
addValueChangeHandlerin interfacecom.google.gwt.place.shared.PlaceHistoryHandler.Historian
-
getToken
public String getToken()
- Specified by:
getTokenin interfacecom.google.gwt.place.shared.PlaceHistoryHandler.Historian
-
newItem
public void newItem(String ptoken, boolean pissueEvent)
- Specified by:
newItemin interfacecom.google.gwt.place.shared.PlaceHistoryHandler.Historian
-
replaceItem
public static void replaceItem(String pnewToken, boolean pfireEvent)
-
-