org.gwtbootstrap3.client.ui
Class Label

java.lang.Object
  extended by com.google.gwt.user.client.ui.UIObject
      extended by com.google.gwt.user.client.ui.Widget
          extended by org.gwtbootstrap3.client.ui.base.AbstractTextWidget
              extended by org.gwtbootstrap3.client.ui.Label
All Implemented Interfaces:
IsEditor<LeafValueEditor<String>>, HasAllMouseHandlers, HasClickHandlers, HasMouseDownHandlers, HasMouseMoveHandlers, HasMouseOutHandlers, HasMouseOverHandlers, HasMouseUpHandlers, HasMouseWheelHandlers, HasAttachHandlers, HasHandlers, EventListener, HasHTML, HasText, HasVisibility, IsWidget, HasId, HasInlineStyle, HasPull, HasResponsiveness, HasType<LabelType>

public class Label
extends AbstractTextWidget
implements HasType<LabelType>, HasClickHandlers, HasAllMouseHandlers

Bootstrap's label, see documentation.

Not to be confused with <label> (see FormLabel) or GWT's Label

Author:
Sven Jacobs
See Also:
FormLabel

Nested Class Summary
 
Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject
UIObject.DebugIdImpl, UIObject.DebugIdImplEnabled
 
Field Summary
 
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
 
Constructor Summary
Label()
           
Label(LabelType type)
           
Label(LabelType type, String text)
           
Label(String text)
           
 
Method Summary
 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.
 
Methods inherited from class org.gwtbootstrap3.client.ui.base.AbstractTextWidget
asEditor, getHTML, getId, getPull, getText, setColor, setHiddenOn, setHTML, setId, setMarginBottom, setMarginLeft, setMarginRight, setMarginTop, setPaddingBottom, setPaddingLeft, setPaddingRight, setPaddingTop, setPull, setText, setVisibleOn
 
Methods inherited from class com.google.gwt.user.client.ui.Widget
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
 
Methods inherited from class com.google.gwt.user.client.ui.UIObject
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.google.gwt.event.shared.HasHandlers
fireEvent
 

Constructor Detail

Label

public Label()

Label

public Label(LabelType type)

Label

public Label(String text)

Label

public Label(LabelType type,
             String text)
Method Detail

setType

public void setType(LabelType type)
Sets type of label.

Specified by:
setType in interface HasType<LabelType>
Parameters:
type - Type of label

getType

public LabelType getType()
Description copied from interface: HasType
Gets the type of the widget

Specified by:
getType in interface HasType<LabelType>
Returns:
type of the widget

addClickHandler

public HandlerRegistration addClickHandler(ClickHandler handler)
Specified by:
addClickHandler in interface HasClickHandlers

addMouseDownHandler

public HandlerRegistration addMouseDownHandler(MouseDownHandler handler)
Specified by:
addMouseDownHandler in interface HasMouseDownHandlers

addMouseMoveHandler

public HandlerRegistration addMouseMoveHandler(MouseMoveHandler handler)
Specified by:
addMouseMoveHandler in interface HasMouseMoveHandlers

addMouseOutHandler

public HandlerRegistration addMouseOutHandler(MouseOutHandler handler)
Specified by:
addMouseOutHandler in interface HasMouseOutHandlers

addMouseOverHandler

public HandlerRegistration addMouseOverHandler(MouseOverHandler handler)
Specified by:
addMouseOverHandler in interface HasMouseOverHandlers

addMouseUpHandler

public HandlerRegistration addMouseUpHandler(MouseUpHandler handler)
Specified by:
addMouseUpHandler in interface HasMouseUpHandlers

addMouseWheelHandler

public HandlerRegistration addMouseWheelHandler(MouseWheelHandler handler)
Specified by:
addMouseWheelHandler in interface HasMouseWheelHandlers


Copyright © 2015. All rights reserved.