public class Icon extends Widget
The icons are provided by Glyphicons and Font Awesome.
<b:Icon type="PLANE" />
UIObject.DebugIdImpl, UIObject.DebugIdImplEnabled
DEBUG_ID_PREFIX
Constructor and Description |
---|
Icon()
Creates a widget but doesn't set an icon yet.
|
Icon(IconType type)
Creates a black icon of given type.
|
Modifier and Type | Method and Description |
---|---|
BaseIconType |
getBaseIconType()
Get the base icon type
|
IconType |
getIconType()
Get the icon type
|
void |
setBaseType(BaseIconType type)
Sets the base icon type.
|
void |
setIcon(IconType type)
Sets the base icon type.
|
void |
setIconSize(IconSize size)
Sets the icon size.
|
void |
setType(IconType type)
Sets the icon type.
|
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents
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
public Icon()
@UiConstructor public Icon(IconType type)
type
- the icon typepublic void setBaseType(BaseIconType type)
type
- the icon typepublic void setIconSize(IconSize size)
size
- the icon sizepublic IconType getIconType()
IconType
public BaseIconType getBaseIconType()
Copyright © 2012-2013 gwtbootstrap. All Rights Reserved.