com.github.gwtbootstrap.client.ui
Class Label
java.lang.Object
com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.google.gwt.user.client.ui.LabelBase<String>
com.google.gwt.user.client.ui.Label
com.google.gwt.user.client.ui.InlineLabel
com.github.gwtbootstrap.client.ui.Label
- All Implemented Interfaces:
- HasType<LabelType>, IsEditor<LeafValueEditor<String>>, HasAllDragAndDropHandlers, HasAllGestureHandlers, HasAllMouseHandlers, HasAllTouchHandlers, HasClickHandlers, HasDoubleClickHandlers, HasDragEndHandlers, HasDragEnterHandlers, HasDragHandlers, HasDragLeaveHandlers, HasDragOverHandlers, HasDragStartHandlers, HasDropHandlers, HasGestureChangeHandlers, HasGestureEndHandlers, HasGestureStartHandlers, HasMouseDownHandlers, HasMouseMoveHandlers, HasMouseOutHandlers, HasMouseOverHandlers, HasMouseUpHandlers, HasMouseWheelHandlers, HasTouchCancelHandlers, HasTouchEndHandlers, HasTouchMoveHandlers, HasTouchStartHandlers, HasAttachHandlers, HasHandlers, HasDirection, HasDirectionEstimator, EventListener, HasAutoHorizontalAlignment, HasDirectionalText, HasHorizontalAlignment, HasText, HasVisibility, HasWordWrap, IsWidget, SourcesClickEvents, SourcesMouseEvents
public class Label
- extends InlineLabel
- implements HasType<LabelType>
Colored label to show warnings, tags, ... You could have multiple types :)
UiBinder Usage:
<b:Label type="INFO">I'm the text!</b:Label>
All arguments are optional.
- Since:
- 2.0.4.0
- Author:
- Carlos Alexandro Becker, Dominik Mayer
- See Also:
- Bootstrap documentation,
Badge
Constructor Summary |
Label()
Creates an empty Label. |
Label(LabelType type,
String text)
Creates a Label of given Type with the given text. |
Label(String text)
Creates a Label with the given text. |
Methods inherited from class com.google.gwt.user.client.ui.InlineLabel |
wrap |
Methods inherited from class com.google.gwt.user.client.ui.Label |
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, setText |
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 |
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, unsinkEvents |
Label
public Label()
- Creates an empty Label.
Label
public Label(String text)
- Creates a Label with the given text.
- Parameters:
text
- the text for the Label
Label
public Label(LabelType type,
String text)
- Creates a Label of given Type with the given text.
- Parameters:
type
- the type of the Labeltext
- the text of the Label
setType
public void setType(LabelType type)
- Sets the type of the widget.
- Specified by:
setType
in interface HasType<LabelType>
Copyright © 2012 gwtbootstrap. All Rights Reserved.