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.
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 |
children
protected Control children
- The children of the container.
tail
protected Control tail
- The tail of the children list.
Container
public Container()
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.