public class OptGroup extends ComplexWidget implements HasEnabled
UIObject.DebugIdImpl, UIObject.DebugIdImplEnabledIndexedPanel.ForIsWidgetHasWidgets.ForIsWidgetDEBUG_ID_PREFIX| Constructor and Description |
|---|
OptGroup() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(Widget child) |
IconType |
getIcon()
Returns the icon of the option; may be
null. |
String |
getLabel()
Returns the label of the option group; may be
null. |
String |
getSubtext()
Returns the sub-text of the option.
|
void |
insert(Widget child,
int beforeIndex) |
boolean |
isEnabled() |
boolean |
remove(Widget w) |
void |
setEnabled(boolean enabled) |
void |
setIcon(IconType iconType)
Add an icon to the option.
|
void |
setLabel(String label)
Set the label of the option group.
|
void |
setMaxOptions(int maxOptions)
When set to a positive value and in a multi-select, the
number of selected options cannot exceed the given value.
|
void |
setSubtext(String subtext)
Set the specified sub-text to the option.
|
getId, getPull, insert, setColor, setHiddenOn, setId, setMarginBottom, setMarginLeft, setMarginRight, setMarginTop, setPaddingBottom, setPaddingLeft, setPaddingRight, setPaddingTop, setPull, setVisibleOnadd, add, adjustIndex, checkIndexBoundsForAccess, checkIndexBoundsForInsertion, getChildren, getWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, insert, iterator, removeadd, adopt, clear, doAttachChildren, doDetachChildren, orphan, removeaddAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEventsaddStyleDependentName, 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, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic OptGroup()
public String getLabel()
null.public boolean isEnabled()
isEnabled in interface HasEnabledpublic void setEnabled(boolean enabled)
setEnabled in interface HasEnabledpublic void setSubtext(String subtext)
subtext - public String getSubtext()
public void setIcon(IconType iconType)
iconType - public IconType getIcon()
null.public void setMaxOptions(int maxOptions)
maxOptions - public void add(Widget child)
add in interface HasWidgetsadd in class ComplexWidgetpublic boolean remove(Widget w)
remove in interface HasWidgetsremove in class ComplexWidgetCopyright © 2017. All rights reserved.