public class InlineLabel extends Label
LabelBase.setDirectionEstimator(boolean) or
passing a DirectionEstimator parameter to the constructor, and is off by
default.
UIObject.DebugIdImpl, UIObject.DebugIdImplEnabledHasDirection.DirectionHasHorizontalAlignment.AutoHorizontalAlignmentConstant, HasHorizontalAlignment.HorizontalAlignmentConstantDEFAULT_DIRECTION_ESTIMATORdirectionalTextHelpereventsToSinkDEBUG_ID_PREFIX, MISSING_ELEMENT_ERROR, SETELEMENT_TWICE_ERRORALIGN_CONTENT_END, ALIGN_CONTENT_STARTALIGN_CENTER, ALIGN_DEFAULT, ALIGN_JUSTIFY, ALIGN_LEFT, ALIGN_LOCALE_END, ALIGN_LOCALE_START, ALIGN_RIGHT| Modifier | Constructor and Description |
|---|---|
|
InlineLabel()
Creates an empty label.
|
protected |
InlineLabel(Element element)
This constructor may be used by subclasses to explicitly use an existing
element.
|
|
InlineLabel(java.lang.String text)
Creates a label with the specified text.
|
|
InlineLabel(java.lang.String text,
DirectionEstimator directionEstimator)
Creates a label with the specified text and a default direction estimator.
|
|
InlineLabel(java.lang.String text,
HasDirection.Direction dir)
Creates a label with the specified text and direction.
|
| Modifier and Type | Method and Description |
|---|---|
static InlineLabel |
wrap(Element element)
Creates a InlineLabel widget that wraps an existing <div> or
<span> element.
|
addClickHandler, 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, setTextgetAutoHorizontalAlignment, getDirectionEstimator, getHorizontalAlignment, getWordWrap, setAutoHorizontalAlignment, setDirectionEstimator, setDirectionEstimator, setHorizontalAlignment, setWordWrap, updateHorizontalAlignmentaddAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, ensureHandlers, fireEvent, getHandlerCount, getHandlerManager, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, onLoad, onUnload, removeFromParent, replaceElement, setLayoutData, setParent, sinkEvents, unsinkEventsaddStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, resolvePotentialElement, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfireEventpublic InlineLabel()
public InlineLabel(java.lang.String text)
text - the new label's textpublic InlineLabel(java.lang.String text,
HasDirection.Direction dir)
text - the new label's textdir - the text's direction. Note: Direction.DEFAULT means
direction should be inherited from the widget's parent element.public InlineLabel(java.lang.String text,
DirectionEstimator directionEstimator)
text - the new label's textdirectionEstimator - A DirectionEstimator object used for automatic
direction adjustment. For convenience,
Label.DEFAULT_DIRECTION_ESTIMATOR can be used.protected InlineLabel(Element element)
element - the element to be usedpublic static InlineLabel wrap(Element element)
RootPanel.detachNow(Widget).element - the element to be wrapped