waba.ui
Class Container

waba.lang.Object
  |
  +--waba.ui.Control
        |
        +--waba.ui.Container
Direct Known Subclasses:
TabBar, Window

public class Container
extends Control

Container is a control that contains child controls.


Field Summary
protected  Control children
          The children of the container.
protected  Control tail
          The tail of the children list.
 
Fields inherited from class waba.ui.Control
height, next, parent, prev, width, x, y
 
Constructor Summary
Container()
           
 
Method Summary
 void add(Control control)
          Adds a child control to this container.
 Control findChild(int x, int y)
          Returns the child located at the given x and y coordinates.
 void paintChildren(Graphics g, int x, int y, int width, int height)
          Called by the system to draw the children of the container.
 void remove(Control control)
          Removes a child control from the container.
 
Methods inherited from class waba.ui.Control
addTimer, contains, createGraphics, getFontMetrics, getNext, getParent, getRect, onEvent, onPaint, postEvent, removeTimer, repaint, setRect
 
Methods inherited from class waba.lang.Object
toString
 

Field Detail

children

protected Control children
The children of the container.

tail

protected Control tail
The tail of the children list.
Constructor Detail

Container

public Container()
Method Detail

add

public void add(Control control)
Adds a child control to this container.

remove

public void remove(Control control)
Removes a child control from the container.

findChild

public Control findChild(int x,
                         int y)
Returns the child located at the given x and y coordinates.

paintChildren

public void paintChildren(Graphics g,
                          int x,
                          int y,
                          int width,
                          int height)
Called by the system to draw the children of the container.