public class Label extends AbstractTextWidget implements HasType<LabelType>, HasClickHandlers, HasAllMouseHandlers
<label>
(see FormLabel
) or GWT's Label
FormLabel
UIObject.DebugIdImpl, UIObject.DebugIdImplEnabled
DEBUG_ID_PREFIX
Constructor and Description |
---|
Label() |
Label(LabelType type) |
Label(LabelType type,
String text) |
Label(String text) |
Modifier and Type | Method and Description |
---|---|
HandlerRegistration |
addClickHandler(ClickHandler handler) |
HandlerRegistration |
addMouseDownHandler(MouseDownHandler handler) |
HandlerRegistration |
addMouseMoveHandler(MouseMoveHandler handler) |
HandlerRegistration |
addMouseOutHandler(MouseOutHandler handler) |
HandlerRegistration |
addMouseOverHandler(MouseOverHandler handler) |
HandlerRegistration |
addMouseUpHandler(MouseUpHandler handler) |
HandlerRegistration |
addMouseWheelHandler(MouseWheelHandler handler) |
LabelType |
getType()
Gets the type of the widget
|
void |
setType(LabelType type)
Sets type of label.
|
asEditor, getHTML, getId, getPull, getText, setColor, setHiddenOn, setHTML, setId, setMarginBottom, setMarginLeft, setMarginRight, setMarginTop, setPaddingBottom, setPaddingLeft, setPaddingRight, setPaddingTop, setPull, setText, setVisibleOn
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, 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, onEnsureDebugId, removeStyleDependentName, removeStyleName, resolvePotentialElement, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
fireEvent
public Label()
public LabelType getType()
HasType
public HandlerRegistration addClickHandler(ClickHandler handler)
addClickHandler
in interface HasClickHandlers
public HandlerRegistration addMouseDownHandler(MouseDownHandler handler)
addMouseDownHandler
in interface HasMouseDownHandlers
public HandlerRegistration addMouseMoveHandler(MouseMoveHandler handler)
addMouseMoveHandler
in interface HasMouseMoveHandlers
public HandlerRegistration addMouseOutHandler(MouseOutHandler handler)
addMouseOutHandler
in interface HasMouseOutHandlers
public HandlerRegistration addMouseOverHandler(MouseOverHandler handler)
addMouseOverHandler
in interface HasMouseOverHandlers
public HandlerRegistration addMouseUpHandler(MouseUpHandler handler)
addMouseUpHandler
in interface HasMouseUpHandlers
public HandlerRegistration addMouseWheelHandler(MouseWheelHandler handler)
addMouseWheelHandler
in interface HasMouseWheelHandlers
Copyright © 2017. All rights reserved.