public class ClickableLabel extends InlineLabel
An extension of InlineLabel
that allows for an optional
ClickHandler
.
Also provides support for help text using FieldHelpView
.
UIObject.DebugIdImpl, UIObject.DebugIdImplEnabled
HasDirection.Direction
HasHorizontalAlignment.AutoHorizontalAlignmentConstant, HasHorizontalAlignment.HorizontalAlignmentConstant
DEFAULT_DIRECTION_ESTIMATOR
DEBUG_ID_PREFIX
ALIGN_CONTENT_END, ALIGN_CONTENT_START
ALIGN_CENTER, ALIGN_DEFAULT, ALIGN_JUSTIFY, ALIGN_LEFT, ALIGN_LOCALE_END, ALIGN_LOCALE_START, ALIGN_RIGHT
Constructor and Description |
---|
ClickableLabel() |
ClickableLabel(String text) |
ClickableLabel(String text,
boolean bold,
ClickHandler clickHandler) |
ClickableLabel(String text,
ClickHandler clickHandler) |
Modifier and Type | Method and Description |
---|---|
HandlerRegistration |
addClickHandler(ClickHandler handler) |
void |
setBold(boolean bold) |
void |
setEnabled(boolean enabled) |
void |
setHelp(SafeHtml helpContent) |
void |
setHelpView(FieldHelpView fieldHelpView) |
wrap
addClickListener, addDoubleClickHandler, addDragEndHandler, addDragEnterHandler, addDragHandler, addDragLeaveHandler, addDragOverHandler, addDragStartHandler, addDropHandler, addGestureChangeHandler, addGestureEndHandler, addGestureStartHandler, addMouseDownHandler, addMouseListener, addMouseMoveHandler, addMouseOutHandler, addMouseOverHandler, addMouseUpHandler, addMouseWheelHandler, addMouseWheelListener, addTouchCancelHandler, addTouchEndHandler, addTouchMoveHandler, addTouchStartHandler, asEditor, getDirection, getText, getTextDirection, removeClickListener, removeMouseListener, removeMouseWheelListener, setDirection, setText, setText
getAutoHorizontalAlignment, getDirectionEstimator, getHorizontalAlignment, getWordWrap, setAutoHorizontalAlignment, setDirectionEstimator, setDirectionEstimator, setHorizontalAlignment, setWordWrap
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, fireEvent, getLayoutData, getParent, isAttached, onBrowserEvent, removeFromParent, setLayoutData, sinkEvents, unsinkEvents
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleName, getStylePrimaryName, getTitle, isVisible, isVisible, removeStyleDependentName, removeStyleName, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
fireEvent
public ClickableLabel()
public ClickableLabel(String text, ClickHandler clickHandler)
public ClickableLabel(String text)
public ClickableLabel(String text, boolean bold, ClickHandler clickHandler)
public void setBold(boolean bold)
public void setEnabled(boolean enabled)
public void setHelpView(FieldHelpView fieldHelpView)
public void setHelp(SafeHtml helpContent)
public HandlerRegistration addClickHandler(ClickHandler handler)
addClickHandler
in interface HasClickHandlers
addClickHandler
in class Label