Class InlineHyperlinkPushState
- java.lang.Object
-
- com.google.gwt.user.client.ui.UIObject
-
- com.google.gwt.user.client.ui.Widget
-
- com.google.gwt.user.client.ui.Hyperlink
-
- com.google.gwt.user.client.ui.InlineHyperlink
-
- com.wallissoftware.pushstate.client.ui.InlineHyperlinkPushState
-
- All Implemented Interfaces:
com.google.gwt.event.dom.client.HasClickHandlers,com.google.gwt.event.logical.shared.HasAttachHandlers,com.google.gwt.event.shared.HasHandlers,com.google.gwt.i18n.shared.HasDirectionEstimator,com.google.gwt.safehtml.client.HasSafeHtml,com.google.gwt.user.client.EventListener,com.google.gwt.user.client.ui.HasDirectionalSafeHtml,com.google.gwt.user.client.ui.HasDirectionalText,com.google.gwt.user.client.ui.HasHTML,com.google.gwt.user.client.ui.HasText,com.google.gwt.user.client.ui.HasVisibility,com.google.gwt.user.client.ui.IsWidget,com.google.gwt.user.client.ui.SourcesClickEvents
public class InlineHyperlinkPushState extends com.google.gwt.user.client.ui.InlineHyperlinkWidget that is an internal hyperlink and supports HTML5 pushState.It extends GWT's original
InlineHyperlinkand moves the history token from the hash to the path.This has the advantage that no-pushState browsers see the correct nice link while still using a
PlaceHistoryHandler.Historianimplementation which does not cause reloads.- Author:
- Johannes Barop
-
-
Constructor Summary
Constructors Constructor Description InlineHyperlinkPushState()No arg constructor, callsInlineHyperlink().InlineHyperlinkPushState(String ptext, String ptargetHistoryToken)CallsInlineHyperlink(String, String).
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetTargetHistoryToken()voidonBrowserEvent(com.google.gwt.user.client.Event pevent)voidsetTargetHistoryToken(String ptargetHistoryToken)-
Methods inherited from class com.google.gwt.user.client.ui.Hyperlink
addClickHandler, addClickListener, getDirectionEstimator, getHTML, getText, getTextDirection, onEnsureDebugId, removeClickListener, setDirectionEstimator, setDirectionEstimator, setHTML, setHTML, setHTML, setText, setText
-
Methods inherited from class com.google.gwt.user.client.ui.Widget
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onDetach, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEvents
-
Methods inherited from class com.google.gwt.user.client.ui.UIObject
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, removeStyleDependentName, removeStyleName, resolvePotentialElement, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString
-
-
-
-
Method Detail
-
setTargetHistoryToken
public void setTargetHistoryToken(String ptargetHistoryToken)
- Overrides:
setTargetHistoryTokenin classcom.google.gwt.user.client.ui.Hyperlink
-
getTargetHistoryToken
public String getTargetHistoryToken()
- Overrides:
getTargetHistoryTokenin classcom.google.gwt.user.client.ui.Hyperlink
-
onBrowserEvent
public void onBrowserEvent(com.google.gwt.user.client.Event pevent)
- Specified by:
onBrowserEventin interfacecom.google.gwt.user.client.EventListener- Overrides:
onBrowserEventin classcom.google.gwt.user.client.ui.Hyperlink
-
-