public class InlineHyperlink extends Hyperlink
Hyperlink
, save that it lays out
as an inline element, not block.
Hyperlink.setDirectionEstimator(boolean)
or
passing a DirectionEstimator parameter to the constructor, and is off by
default.
UIObject.DebugIdImpl, UIObject.DebugIdImplEnabled
DEFAULT_DIRECTION_ESTIMATOR, directionalTextHelper
DEBUG_ID_PREFIX
Constructor and Description |
---|
InlineHyperlink()
Creates an empty hyperlink.
|
InlineHyperlink(SafeHtml html,
DirectionEstimator directionEstimator,
String targetHistoryToken)
Creates a hyperlink with its html and target history token specified.
|
InlineHyperlink(SafeHtml html,
HasDirection.Direction dir,
String targetHistoryToken)
Creates a hyperlink with its html and target history token specified.
|
InlineHyperlink(SafeHtml html,
String targetHistoryToken)
Creates a hyperlink with its html and target history token specified.
|
InlineHyperlink(String text,
boolean asHTML,
String targetHistoryToken)
Creates a hyperlink with its text and target history token specified.
|
InlineHyperlink(String text,
DirectionEstimator directionEstimator,
String targetHistoryToken)
Creates a hyperlink with its text and target history token specified.
|
InlineHyperlink(String text,
HasDirection.Direction dir,
String targetHistoryToken)
Creates a hyperlink with its text and target history token specified.
|
InlineHyperlink(String text,
String targetHistoryToken)
Creates a hyperlink with its text and target history token specified.
|
addClickHandler, addClickListener, getDirectionEstimator, getHTML, getTargetHistoryToken, getText, getTextDirection, onBrowserEvent, onEnsureDebugId, removeClickListener, setDirectionEstimator, setDirectionEstimator, setHTML, setHTML, setHTML, setTargetHistoryToken, setText, setText
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onDetach, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEvents
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
fireEvent
public InlineHyperlink()
public InlineHyperlink(SafeHtml html, String targetHistoryToken)
html
- the hyperlink's htmltargetHistoryToken
- the history token to which it will linkHyperlink.setTargetHistoryToken(java.lang.String)
public InlineHyperlink(SafeHtml html, HasDirection.Direction dir, String targetHistoryToken)
html
- the hyperlink's htmldir
- the html's directiontargetHistoryToken
- the history token to which it will linkHyperlink.setTargetHistoryToken(java.lang.String)
public InlineHyperlink(SafeHtml html, DirectionEstimator directionEstimator, String targetHistoryToken)
html
- the hyperlink's htmldirectionEstimator
- A DirectionEstimator object used for automatic
direction adjustment. For convenience,
Hyperlink.DEFAULT_DIRECTION_ESTIMATOR
can be used.targetHistoryToken
- the history token to which it will linkHyperlink.setTargetHistoryToken(java.lang.String)
public InlineHyperlink(String text, String targetHistoryToken)
text
- the hyperlink's texttargetHistoryToken
- the history token to which it will linkpublic InlineHyperlink(String text, HasDirection.Direction dir, String targetHistoryToken)
text
- the hyperlink's textdir
- the text's directiontargetHistoryToken
- the history token to which it will linkpublic InlineHyperlink(String text, DirectionEstimator directionEstimator, String targetHistoryToken)
text
- the hyperlink's textdirectionEstimator
- A DirectionEstimator object used for automatic
direction adjustment. For convenience,
Hyperlink.DEFAULT_DIRECTION_ESTIMATOR
can be used.targetHistoryToken
- the history token to which it will linkpublic InlineHyperlink(String text, boolean asHTML, String targetHistoryToken)
text
- the hyperlink's textasHTML
- true
to treat the specified text as htmltargetHistoryToken
- the history token to which it will linkHyperlink.setTargetHistoryToken(java.lang.String)
Copyright © 2018. All rights reserved.