public class AddOn extends ComplexWidget implements HasText, HasIcon
AddOn can set text or icon.
<!-- text addon -->
<b:AddOn text="@"/>
<!-- text addon another usage -->
<b:AddOn>@</b:AddOn>
<!-- icon addon -->
<b:AddOn icon="STAR"/>
<!-- widget addon -->
<b:Addon><b:widget><b:CheckBox/></b:widget></b:AddOn>
InputAddOn,
IconType,
Bootstrap
DocsUIObject.DebugIdImpl, UIObject.DebugIdImplEnabledHasWidgets.ForIsWidgetIndexedPanel.ForIsWidgetDEBUG_ID_PREFIX| Constructor and Description |
|---|
AddOn()
Creates an empty widget.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addWidget(IsWidget w)
Add widget.
|
String |
getText() |
void |
setBaseIcon(BaseIconType type)
Sets the BaseType of the Icon.
|
void |
setCustomIconStyle(String customIconStyle)
Set custom icon style.
|
void |
setIcon(IconType type)
Sets the Type of the Icon.
|
void |
setIconPosition(IconPosition position)
Deprecated.
|
void |
setIconSize(IconSize size)
Sets the size of the icon.
|
void |
setText(String text) |
add, addStyle, insert, removeStyle, setHideOn, setShowOn, setStyleadd, adjustIndex, checkIndexBoundsForAccess, checkIndexBoundsForInsertion, getChildren, getWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, insert, insert, iterator, remove, removeadd, adopt, adopt, clear, disown, doAttachChildren, doDetachChildren, orphan, removeaddAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, 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, unsinkEventsclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitclear, iterator, removepublic AddOn()
public void setBaseIcon(BaseIconType type)
setBaseIcon in interface HasIconpublic void setIconSize(IconSize size)
Default is DEFAULT.
setIconSize in interface HasIconsize - the new size.@UiChild(tagname="widget", limit=1) public void addWidget(IsWidget w)
w - added widgetpublic void setCustomIconStyle(String customIconStyle)
It sets css class name to <i> tag. You can set any icons style.
setCustomIconStyle in interface HasIcon@Deprecated public void setIconPosition(IconPosition position)
HasIconsetIconPosition in interface HasIconposition - icon's positionCopyright © 2012-2014 gwtbootstrap. All Rights Reserved.