public interface HasWidgets extends 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.
|
Iterator<Widget> |
iterator()
Gets an iterator for the contained widgets.
|
boolean |
remove(Widget w)
Removes a child widget.
|
forEach, spliterator
void add(Widget w)
w
- the widget to be addedUnsupportedOperationException
- if this method is not supported (most
often this means that a specific overload must be called)void clear()
Iterator<Widget> iterator()
Iterator.remove()
.boolean remove(Widget w)
w
- the widget to be removedtrue
if the widget was presentCopyright © 2018. All rights reserved.