jcontrol.ui.vole.menu
Class MenuBar
java.lang.Object
jcontrol.ui.vole.Component
jcontrol.ui.vole.menu.Menu
jcontrol.ui.vole.menu.MenuBar
- All Implemented Interfaces:
- MenuInterface
public class MenuBar
- extends Menu
The class MenuBar
implements a simple
menu bar.
(c) Copyright 2003-2007 DOMOLOGIC GmbH
Fields inherited from class jcontrol.ui.vole.Component |
eventQueue, focusOwner, font, g, height, listener, parent, visible, width, x, y |
Constructor Summary |
MenuBar(int x,
int y,
int width,
int height,
int align)
Constructor for MenuBar. |
Method Summary |
boolean |
onKeyEvent(KeyEvent e)
If a KeyEvent accurs, this method is called. |
void |
paint()
Paint has to be implemented by the deviating class. |
Methods inherited from class jcontrol.ui.vole.menu.Menu |
addMenuItem, addMenuItem, enableMenuItem, getActiveItemCount, getSelectedIndex, hasNextOrPrev, isMenuItemEnabled, remove, removeMenuItem, select, select, selectNextOrPrev, setActionListener, setFont, setParent |
Methods inherited from class jcontrol.ui.vole.Component |
getBounds, getParent, isVisible, onActionEvent, removeFocus, requestFocus, setBounds, setGraphics, setVisible, transferFocus, validate |
ALIGN_TOP
public static final int ALIGN_TOP
- See Also:
- Constant Field Values
ALIGN_BOTTOM
public static final int ALIGN_BOTTOM
- See Also:
- Constant Field Values
MenuBar
public MenuBar(int x,
int y,
int width,
int height,
int align)
- Constructor for MenuBar.
- Parameters:
x
- The x coordinatey
- The y coordinatewidth
- The widthheight
- The heightalign
- ALIGN_TOP or ALIGN_BOTTOM
paint
public void paint()
- Description copied from class:
Menu
- Paint has to be implemented by the deviating class.
- Specified by:
paint
in interface MenuInterface
- Specified by:
paint
in class Menu
- See Also:
Menu.paint()
onKeyEvent
public boolean onKeyEvent(KeyEvent e)
- If a KeyEvent accurs, this method is called.
- Specified by:
onKeyEvent
in interface MenuInterface
- Overrides:
onKeyEvent
in class Menu
- Parameters:
e
- the KeyEvent.
- Returns:
- false if the KeyEvent was consumed, true otherwise.