|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmoka.lang.Object
moka.event.EventListener
moka.x.Component
moka.x.Container
Container is a component that contains child components.
Field Summary | |
protected Component |
child
The first component in this Container. |
protected Component |
tail
The last component in this Container. |
Fields inherited from class moka.x.Component |
enabled, height, listen, mnemonic, next, parent, prev, visible, width, x, y |
Constructor Summary | |
Container()
Constructs a newly allocated Container. |
Method Summary | |
void |
add(Component c)
Adds the specified component to this container. |
void |
checkMnemonic(char m)
Checks if the mnemonic of this container correspond to the current mnemonic. |
protected void |
clean()
Disposes of all ressources used by this container and all its children. |
void |
empty()
Empties the container (removes all its children). |
void |
onPaint()
Called when a PaintEvent occurs to paint the image of the container and stores it in its virtual memory. |
void |
onRefresh()
Called when an UpdateEvent occurs. |
void |
paintChildren(moka.x.SCR_RECT_p clip)
Paints the children of this container to the virtual screen. |
void |
paintForeground()
This method is called to draw the foreground of the container. |
void |
remove(Component c)
Removes the specified component from this container. |
void |
repaintChildren()
Sends a PaintEvent to all the children of this component that need to be repainted. |
Component |
toFront(Component c)
Called to brings a component to the front of this container. |
void |
use()
This method is invoked by the GEM when the user interacts with the container. |
Methods inherited from class moka.x.Component |
bottom, center, eventTriggered, finalize, isCursorOver, left, move, paint, right, setBounds, setEnabled, setHeight, setMnemonic, setVisible, setWidth, setX, setY, top |
Methods inherited from class moka.event.EventListener |
eventTriggered |
Methods inherited from class moka.lang.Object |
equals, getClassName, toString |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected Component child
protected Component tail
Constructor Detail |
public Container()
Method Detail |
public void onPaint()
onPaint
in class Component
public void onRefresh()
public void repaintChildren()
public void paintForeground()
public void paintChildren(moka.x.SCR_RECT_p clip)
public void use()
use
in class Component
public void checkMnemonic(char m)
checkMnemonic
in class Component
public void add(Component c)
c
- the component to add to this container.public void remove(Component c)
c
- the component to remove from this containerpublic void empty()
public Component toFront(Component c)
toFront
in class Component
c
- The component to bring to front.
protected void clean()
clean
in class Component
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |