public class InlineHyperlinkPushState
extends com.google.gwt.user.client.ui.InlineHyperlink
It extends GWT's original InlineHyperlink and 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.Historian implementation which does not cause reloads.
| Constructor and Description |
|---|
InlineHyperlinkPushState()
No arg constructor, calls
InlineHyperlink.InlineHyperlink(). |
InlineHyperlinkPushState(String ptext,
String ptargetHistoryToken)
Calls
InlineHyperlink.InlineHyperlink(String, String). |
| Modifier and Type | Method and Description |
|---|---|
String |
getTargetHistoryToken() |
void |
onBrowserEvent(com.google.gwt.user.client.Event pevent) |
void |
setTargetHistoryToken(String ptargetHistoryToken) |
addClickHandler, addClickListener, getDirectionEstimator, getHTML, getText, getTextDirection, onEnsureDebugId, removeClickListener, setDirectionEstimator, setDirectionEstimator, setHTML, setHTML, setHTML, setText, setTextaddAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onDetach, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEventsaddStyleDependentName, 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, toStringpublic InlineHyperlinkPushState(String ptext, String ptargetHistoryToken)
InlineHyperlink.InlineHyperlink(String, String).public InlineHyperlinkPushState()
InlineHyperlink.InlineHyperlink().public void setTargetHistoryToken(String ptargetHistoryToken)
setTargetHistoryToken in class com.google.gwt.user.client.ui.Hyperlinkpublic String getTargetHistoryToken()
getTargetHistoryToken in class com.google.gwt.user.client.ui.Hyperlinkpublic void onBrowserEvent(com.google.gwt.user.client.Event pevent)
onBrowserEvent in interface com.google.gwt.user.client.EventListeneronBrowserEvent in class com.google.gwt.user.client.ui.HyperlinkCopyright © 2017. All rights reserved.