|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcharva.awt.Component
charva.awt.Container
charvax.swing.JMenuBar
An implementation of a menubar.
| Field Summary |
| Fields inherited from class charva.awt.Container |
_components, _currentFocus, _insets, _isValid, _layoutMgr, _minimumSize, _size |
| Fields inherited from class charva.awt.Component |
_alignmentX, _alignmentY, _background, _cursesColor, _enabled, _focusListeners, _foreground, _keyListeners, _origin, _parent, _visible, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Constructor Summary | |
JMenuBar()
Create a new menu bar |
|
| Method Summary | |
JMenu |
add(JMenu menu_)
Appends the specified menu to the end of the JMenuBar. |
void |
debug(int level_)
Output a text description of the menubar. |
void |
draw()
Draw this menubar. |
int |
getHeight()
|
JMenu |
getMenu(int index_)
Returns the menu at the specified index. |
JMenu |
getMenu(java.lang.String text_)
Returns the menu that has the specified text label. |
int |
getMenuCount()
Returns the number of menus in the menubar. |
Dimension |
getSize()
|
int |
getWidth()
|
Dimension |
minimumSize()
|
void |
processKeyEvent(KeyEvent ke_)
Processes key events occurring on this object by dispatching them to any registered KeyListener objects. |
java.lang.String |
toString()
|
| Methods inherited from class charva.awt.Container |
add, add, doLayout, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getCurrentFocus, getInsets, invalidate, isFocusTraversable, isValid, nextFocus, previousFocus, remove, requestFocus, setBackground, setFocus, setForeground, setHeight, setLayout, setSize, setSize, setWidth, validate |
| Methods inherited from class charva.awt.Component |
addFocusListener, addKeyListener, contains, contains, getAlignmentX, getAlignmentY, getAncestorWindow, getBackground, getBounds, getCursesColor, getForeground, getLocation, getLocationOnScreen, getName, getParent, hasFocus, hide, isDisplayed, isEnabled, isTotallyObscured, isVisible, processEvent, processFocusEvent, processMouseEvent, repaint, requestSync, setBounds, setBounds, setBounds, setEnabled, setLocation, setLocation, setName, setParent, setVisible, show, validateCursesColor |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public JMenuBar()
| Method Detail |
public JMenu add(JMenu menu_)
menu_ - the menu to be added.
public int getMenuCount()
public JMenu getMenu(int index_)
public JMenu getMenu(java.lang.String text_)
public void draw()
draw in class Containerpublic void processKeyEvent(KeyEvent ke_)
processKeyEvent in class Containerpublic Dimension minimumSize()
minimumSize in class Containerpublic Dimension getSize()
getSize in class Containerpublic int getWidth()
getWidth in class Containerpublic int getHeight()
getHeight in class Containerpublic void debug(int level_)
debug in class Containerpublic java.lang.String toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||