|
||||||||||
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
moka.x.MenuBar
The MenuBar class represents a menu bar bound to a frame. In order to associate the menu bar with a Frame object, call the frame's setMenuBar method.
Field Summary |
Fields inherited from class moka.x.Container |
child, tail |
Fields inherited from class moka.x.Component |
enabled, height, listen, mnemonic, next, parent, prev, visible, width, x, y |
Constructor Summary | |
MenuBar()
Constructs a newly allocated MenuBar. |
Method Summary | |
void |
add(Menu m)
Adds the specified Menu to this MenuBar. |
void |
paintForeground()
Paints the foreground of the MenuBar. |
void |
remove(Menu m)
Removes the specified Menu from this MenuBar. |
void |
update()
Updates the disposition of the Menus on the Menubar. |
Methods inherited from class moka.x.Container |
add, checkMnemonic, clean, empty, onPaint, onRefresh, paintChildren, remove, repaintChildren, toFront, use |
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 |
Constructor Detail |
public MenuBar()
Method Detail |
public void paintForeground()
paintForeground
in class Container
public void add(Menu m)
m
- the Menu to add to this MenuBar.public void update()
public void remove(Menu m)
m
- the Menu to remove from this MenuBar
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |