waba.ui
Class Container
java.lang.Object
|
+--waba.ui.Control
|
+--waba.ui.Container
- Direct Known Subclasses:
- JustifiedContainer, TabBar, TabPanel, Window
- public class Container
- extends Control
Container is a control that contains child controls.
Fields inherited from class waba.ui.Control |
BOTTOM,
CENTER,
controlCount,
enabled,
FILL,
fm,
font,
height,
LEFT,
name,
next,
parent,
PREFERRED,
prev,
RIGHT,
TOP,
width,
x,
y |
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,
getAbsoluteRect,
getFontMetrics,
getNext,
getParent,
getPreferredHeight,
getPreferredWidth,
getRect,
isEnabled,
isVisible,
onBoundsChanged,
onEvent,
onPaint,
onWindowPaintFinished,
postEvent,
removeTimer,
repaint,
repaintNow,
setEnabled,
setFont,
setRect,
setRect,
setVisible |
Methods inherited from class java.lang.Object |
hashCode,
toString |
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.