public class Composite extends Widget implements Iterable<Widget>
Widget instances, following the composite pattern.
 The children are stored in a list. The order of the list defines the front-to-back stacking order of the widgets within the composite. The first widget in the list is at the back of the stacking order.
A widget cannot be added two times in a hierarchy.
Widget.WidgetAttribute, Widget.WidgetDescriptionDEFAULT_LABEL| Constructor and Description | 
|---|
| Composite()Creates a new composite. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | add(Widget widget)Adds the specified widget to the end of the list of children of this composite. | 
| void | dispose()Disposes all composite children widgets. | 
| Iterator<Widget> | iterator()Gets an iterator over the composite children widgets in proper sequence. | 
finalizeConfiguration, getAbsoluteX, getAbsoluteY, getCurrentSkin, getFilter, getHeight, getLabel, getParent, getSkin, getWidth, getX, getY, isOver, repaint, repaint, setCurrentSkin, setFilter, setHeight, setLabel, setOverlay, setSkin, setWidth, setX, setY, showYourself, startpublic Composite()
 Its bounds will be set to 0.
public void add(Widget widget) throws IllegalArgumentException
widget is
 null, no exception is thrown and no action is performed.widget - the widget to add.IllegalArgumentException - if the specified widget is already in a hierarchy (already contained in a composite).public void dispose()
public Iterator<Widget> iterator()
 The Iterator.remove() is not implemented (throws a UnsupportedOperationException).