public interface HasWidgets extends java.lang.Iterable<Widget>
widgets and can enumerate them.| Modifier and Type | Interface and Description |
|---|---|
static interface |
HasWidgets.ForIsWidget
Extends this interface with convenience methods to handle
IsWidget. |
| Modifier and Type | Method and Description |
|---|---|
void |
add(Widget w)
Adds a child widget.
|
void |
clear()
Removes all child widgets.
|
java.util.Iterator<Widget> |
iterator()
Gets an iterator for the contained widgets.
|
boolean |
remove(Widget w)
Removes a child widget.
|
void add(Widget w)
w - the widget to be addedjava.lang.UnsupportedOperationException - if this method is not supported (most
often this means that a specific overload must be called)void clear()
java.util.Iterator<Widget> iterator()
Iterator.remove().iterator in interface java.lang.Iterable<Widget>boolean remove(Widget w)
w - the widget to be removedtrue if the widget was present