public class Icon extends ComplexWidget implements HasType<IconType>, HasSize<IconSize>, HasEmphasis, HasClickHandlers
UIObject.DebugIdImpl, UIObject.DebugIdImplEnabled
IndexedPanel.ForIsWidget
HasWidgets.ForIsWidget
DEBUG_ID_PREFIX
Modifier and Type | Method and Description |
---|---|
HandlerRegistration |
addClickHandler(ClickHandler handler) |
Emphasis |
getEmphasis()
Get the object's emphasis.
|
IconFlip |
getFlip() |
IconRotate |
getRotate() |
IconSize |
getSize()
Get the size of the widget
|
IconType |
getType()
Gets the type of the widget
|
boolean |
isBorder() |
boolean |
isFixedWidth() |
boolean |
isInverse() |
boolean |
isPulse() |
boolean |
isSpin() |
boolean |
isStackBase() |
boolean |
isStackTop() |
void |
setBorder(boolean border) |
void |
setEmphasis(Emphasis emphasis)
Sets the object's emphasis.
|
void |
setFixedWidth(boolean fixedWidth) |
void |
setFlip(IconFlip iconFlip) |
void |
setInverse(boolean inverse) |
void |
setPulse(boolean pulse) |
void |
setRotate(IconRotate iconRotate) |
void |
setSize(IconSize iconSize)
Set the size of the widget
|
void |
setSpin(boolean spin) |
void |
setStackBase(boolean stackBase) |
void |
setStackTop(boolean stackTop) |
void |
setType(IconType type)
Sets the type on the widget
|
add, getId, getPull, insert, insert, remove, setColor, setHiddenOn, setId, setMarginBottom, setMarginLeft, setMarginRight, setMarginTop, setPaddingBottom, setPaddingLeft, setPaddingRight, setPaddingTop, setPull, setVisibleOn
add, add, adjustIndex, checkIndexBoundsForAccess, checkIndexBoundsForInsertion, getChildren, getWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, insert, iterator, remove
add, adopt, clear, doAttachChildren, doDetachChildren, orphan, remove
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEvents
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
fireEvent
forEach, spliterator
public Icon()
@UiConstructor public Icon(IconType type)
public void setType(IconType type)
HasType
public IconType getType()
HasType
public void setBorder(boolean border)
public boolean isBorder()
public void setStackBase(boolean stackBase)
public boolean isStackBase()
public void setFixedWidth(boolean fixedWidth)
public boolean isFixedWidth()
public void setStackTop(boolean stackTop)
public boolean isStackTop()
public void setInverse(boolean inverse)
public boolean isInverse()
public void setSpin(boolean spin)
public boolean isSpin()
public void setPulse(boolean pulse)
public boolean isPulse()
public void setRotate(IconRotate iconRotate)
public IconRotate getRotate()
public void setSize(IconSize iconSize)
HasSize
public IconSize getSize()
HasSize
public void setEmphasis(Emphasis emphasis)
HasEmphasis
setEmphasis
in interface HasEmphasis
emphasis
- the object's new emphasispublic Emphasis getEmphasis()
HasEmphasis
getEmphasis
in interface HasEmphasis
public HandlerRegistration addClickHandler(ClickHandler handler)
addClickHandler
in interface HasClickHandlers
Copyright © 2017. All rights reserved.