|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--moka.lang.Object | +--moka.event.EventListener | +--moka.x.Component | +--moka.x.CaptionedComponent | +--moka.x.Label | +--moka.x.Menu
Menu class represents a pull-down menu component that is deployed from a menu bar. Each item in a menu must belong to the MenuItem class.
Field Summary | |
moka.util.Vector |
items
A vector containing the items of this Menu. |
Fields inherited from class moka.x.Component |
enabled, height, listen, mnemonic, next, parent, prev, visible, width, x, y |
Fields inherited from interface moka.x.Colored |
bgColor, fgColor |
Fields inherited from interface moka.x.Captioned |
caption, font |
Constructor Summary | |
Menu()
|
|
Menu(java.lang.String caption)
|
Method Summary | |
void |
add(moka.x.MenuItem i)
Adds the specified MenuItem to this Menu. |
void |
finalize()
Frees the memory of system ressources used by this Menu object. |
void |
onPaint()
Called when a PaintEvent occurs to paint the image of the container and stores it in its virtual memory. |
void |
paint()
Paints the Menu. |
void |
remove(moka.x.MenuItem i)
Removes the specified Menu from this MenuBar. |
void |
setVisible(boolean b)
Sets the visibility of the component. |
void |
use()
This method is invoked by the GEM when the user interacts with the ComboBox. |
Methods inherited from class moka.x.Component |
bottom, center, checkMnemonic, clean, eventTriggered, isCursorOver, left, move, right, setBounds, setEnabled, setHeight, setMnemonic, setWidth, setX, setY, toFront, 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 |
Methods inherited from interface moka.x.Colored |
setBgColor, setFgColor |
Methods inherited from interface moka.x.Captioned |
setCaption, setFont |
Field Detail |
public moka.util.Vector items
Constructor Detail |
public Menu()
public Menu(java.lang.String caption)
Method Detail |
public void finalize()
finalize
in class CaptionedComponent
public void paint()
paint
in class Label
public void add(moka.x.MenuItem i)
i
- the MenuItem to add to this Menu.public void remove(moka.x.MenuItem i)
public void onPaint()
onPaint
in class Component
public void setVisible(boolean b)
setVisible
in class Component
b
- true if the component should be visible, false otherwize.public void use()
use
in class Component
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |