public class Label extends AbstractTextWidget implements HasType<LabelType>, HasClickHandlers, HasAllMouseHandlers
<label> (see FormLabel) or GWT's LabelFormLabelUIObject.DebugIdImpl, UIObject.DebugIdImplEnabledDEBUG_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, setVisibleOnaddAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, onLoad, onUnload, removeFromParent, setLayoutData, 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 Label()
public LabelType getType()
HasTypepublic HandlerRegistration addClickHandler(ClickHandler handler)
addClickHandler in interface HasClickHandlerspublic HandlerRegistration addMouseDownHandler(MouseDownHandler handler)
addMouseDownHandler in interface HasMouseDownHandlerspublic HandlerRegistration addMouseMoveHandler(MouseMoveHandler handler)
addMouseMoveHandler in interface HasMouseMoveHandlerspublic HandlerRegistration addMouseOutHandler(MouseOutHandler handler)
addMouseOutHandler in interface HasMouseOutHandlerspublic HandlerRegistration addMouseOverHandler(MouseOverHandler handler)
addMouseOverHandler in interface HasMouseOverHandlerspublic HandlerRegistration addMouseUpHandler(MouseUpHandler handler)
addMouseUpHandler in interface HasMouseUpHandlerspublic HandlerRegistration addMouseWheelHandler(MouseWheelHandler handler)
addMouseWheelHandler in interface HasMouseWheelHandlersCopyright © 2017. All rights reserved.