public class Icon extends Widget implements HasAlignment
The icons are provided by Glyphicons and Font Awesome.
<b:Icon type="PLANE" />
IconStack,
Bootstrap documentation,
Font Awesome pageUIObject.DebugIdImpl, UIObject.DebugIdImplEnabledDEBUG_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 |
setAlignment(Alignment alignment)
Pulls icon left or right.
|
void |
setBaseType(BaseIconType type)
Sets the base icon type.
|
void |
setBorder(boolean border)
Does this icon have a border?
|
void |
setFlip(IconFlip iconFlip)
Sets (horizontal or vertical) flip of icon.
|
void |
setIcon(IconType type)
Sets the base icon type.
|
void |
setIconSize(IconSize size)
Sets the icon size.
|
void |
setLight(boolean light)
Sets whether this icon is a "light" (white) icon.
|
void |
setMuted(boolean muted)
A muted icon is a grayed out icon.
|
void |
setRotate(IconRotate iconRotate)
Sets rotation of icon.
|
void |
setSize(IconSize size)
Sets the icon size.
|
void |
setSpin(boolean spin)
If true icon will spin.
|
void |
setStackBase(boolean stackBase)
|
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, sinkEventsaddStyleDependentName, 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, unsinkEventspublic 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()
IconTypepublic BaseIconType getBaseIconType()
public void setIcon(IconType type)
type - the base icon typepublic void setLight(boolean light)
light - White icon if truepublic void setMuted(boolean muted)
muted - Is this icon muted (grayed out)?public void setBorder(boolean border)
border - True if icon has a borderpublic void setStackBase(boolean stackBase)
IconStack?
Only relevant if icon is a child element of IconStack.stackBase - Is this icon the base (bottom icon) of an icon stack?IconStackpublic void setSpin(boolean spin)
spin - true if icon should spinpublic void setAlignment(Alignment alignment)
setAlignment in interface HasAlignmentalignment - Alignment of iconpublic void setRotate(IconRotate iconRotate)
iconRotate - Rotation of iconIconRotateCopyright © 2012-2014 gwtbootstrap. All Rights Reserved.