org.gwtbootstrap3.client.ui
Class Label
java.lang.Object
com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
org.gwtbootstrap3.client.ui.base.AbstractTextWidget
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
| 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 |
Label
public Label()
Label
public Label(LabelType type)
Label
public Label(String text)
Label
public Label(LabelType type,
String text)
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.