com.github.gwtbootstrap.client.ui
Class Badge
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.Badge
- All Implemented Interfaces:
- HasType<BadgeType>, 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 Badge
- extends InlineLabel
- implements HasType<BadgeType>
Badge to show some kind of count.
UiBinder Usage:
<b:Badge type="ERROR">2</b:Badge>
All arguments are optional.
- Since:
- 2.0.4.0
- Author:
- Dominik Mayer
- See Also:
- Bootstrap documentation,
Label
Constructor Summary |
Badge()
Creates an empty default type Badge. |
Badge(BadgeType type)
Creates an empty Badge of the provided type. |
Badge(int number)
Creates a default type Badge with the text set. |
Badge(String text)
Creates a default type Badge with the text set. |
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 |
Badge
public Badge()
- Creates an empty default type Badge.
Badge
public Badge(String text)
- Creates a default type Badge with the text set.
- Parameters:
text
- the text of the Badge- See Also:
Badge(int)
Badge
public Badge(int number)
- Creates a default type Badge with the text set.
- Parameters:
number
- text to be set- See Also:
Badge(String)
Badge
public Badge(BadgeType type)
- Creates an empty Badge of the provided type.
- Parameters:
type
- the badge's type
setType
public void setType(BadgeType type)
- Sets the type of the Badge.
- Specified by:
setType
in interface HasType<BadgeType>
- Parameters:
type
- the new type
Copyright © 2012 gwtbootstrap. All Rights Reserved.