public class OptGroup extends ComplexWidget implements HasEnabled
UIObject.DebugIdImpl, UIObject.DebugIdImplEnabled
IndexedPanel.ForIsWidget
HasWidgets.ForIsWidget
DEBUG_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, 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
forEach, spliterator
public OptGroup()
public String getLabel()
null
.public boolean isEnabled()
isEnabled
in interface HasEnabled
public void setEnabled(boolean enabled)
setEnabled
in interface HasEnabled
public 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 HasWidgets
add
in class ComplexWidget
public boolean remove(Widget w)
remove
in interface HasWidgets
remove
in class ComplexWidget
Copyright © 2017. All rights reserved.