|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--waba.ui.Control
|
+--extra.ui.MenuBar
This is a standard palm menu bar.
| Constructor Summary | |
MenuBar()
Construct a new empty menu bar of default size |
|
MenuBar(Vector menus)
Construct a new menu bar with the given menus |
|
| Method Summary | |
void |
add(Menu menu)
Add a new Menu to the menu bar |
boolean |
drawList(Graphics g)
|
Menu |
getSelected()
Gets the currently selected Menu |
int |
getSelectedIndex()
Get the index of the currently selected Menu |
void |
hide()
Hide the bar |
void |
onEvent(Event event)
Process pen and key events to this component |
void |
onPaint(Graphics g)
Called to draw the control. |
void |
show()
Show this menu bar up |
| Methods inherited from class waba.ui.Control |
addTimer, contains, createGraphics, getFontMetrics, getNext, getParent, getRect, postEvent, removeTimer, repaint, setRect |
| Methods inherited from class java.lang.Object |
equals, hashCode, toString |
| Constructor Detail |
public MenuBar()
public MenuBar(Vector menus)
menus - a vector of Menu| Method Detail |
public void add(Menu menu)
name - the Menu to addpublic Menu getSelected()
public int getSelectedIndex()
public void onPaint(Graphics g)
ControlonPaint in class Controlwaba.ui.Controlg - the graphics object for drawingGraphicspublic boolean drawList(Graphics g)
public void show()
public void hide()
public void onEvent(Event event)
onEvent in class Controlevent - the event to process
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||