|
|||||||||
| Home >> All >> org >> jext >> [ menus overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.jext.menus
Class JextMenuBar

java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JMenuBar
org.jext.menus.JextMenuBar
- All Implemented Interfaces:
- javax.accessibility.Accessible, java.awt.image.ImageObserver, java.awt.MenuContainer, javax.swing.MenuElement, java.io.Serializable
- public class JextMenuBar
- extends javax.swing.JMenuBar
The menu bar of Jext windows. This menu bar allows
to add items and menus according to a position indicated
by a menu ID. Indeed, this class allows to register menus
with an ID.
Using IDs allows, for instance, to add
plugins submenus in other menus than in Plugins.
(see Java and HTML plugins to see how this works).
| Nested Class Summary |
| Nested classes inherited from class javax.swing.JMenuBar |
javax.swing.JMenuBar.AccessibleJMenuBar |
| Nested classes inherited from class javax.swing.JComponent |
javax.swing.JComponent.AccessibleJComponent |
| Nested classes inherited from class java.awt.Container |
java.awt.Container.AccessibleAWTContainer |
| Nested classes inherited from class java.awt.Component |
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
| Field Summary | |
private int |
editItemsAdded
|
private int |
editMenusAdded
|
private int |
fileItemsAdded
|
private int |
fileMenusAdded
|
private java.util.Hashtable |
menus
|
| Fields inherited from class javax.swing.JMenuBar |
|
| Fields inherited from class javax.swing.JComponent |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Container |
|
| Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
JextMenuBar()
Creates a new menu bar. |
|
| Method Summary | |
void |
addIdentifiedMenu(javax.swing.JMenu menu,
java.lang.String ID)
Adds a menu in the menu bar and register it with an identifier which can be used later to add items or submenus in this menu. |
void |
addMenu(javax.swing.JMenu item,
java.lang.String ID)
Adds a submenu in a menu designed by an ID string. |
void |
addMenuItem(javax.swing.JMenuItem item,
java.lang.String ID)
Adds an item in a menu designed by an ID string. |
protected void |
finalize()
Patch -> Memory management improvements : it may help the garbage collector. |
private org.jext.JextFrame |
getJextFrame()
Get the parent JextFrame |
void |
reset()
Restores the menu bar. |
| Methods inherited from class javax.swing.JMenuBar |
add, addNotify, getAccessibleContext, getComponent, getComponentAtIndex, getComponentIndex, getHelpMenu, getMargin, getMenu, getMenuCount, getSelectionModel, getSubElements, getUI, getUIClassID, isBorderPainted, isSelected, menuSelectionChanged, paintBorder, paramString, processKeyBinding, processKeyEvent, processMouseEvent, removeNotify, setBorderPainted, setHelpMenu, setMargin, setSelected, setSelectionModel, setUI, updateUI |
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
menus
private java.util.Hashtable menus
fileMenusAdded
private int fileMenusAdded
fileItemsAdded
private int fileItemsAdded
editMenusAdded
private int editMenusAdded
editItemsAdded
private int editItemsAdded
| Constructor Detail |
JextMenuBar
public JextMenuBar()
- Creates a new menu bar.
| Method Detail |
addIdentifiedMenu
public void addIdentifiedMenu(javax.swing.JMenu menu, java.lang.String ID)
- Adds a menu in the menu bar and register it with
an identifier which can be used later to add items
or submenus in this menu.
addMenu
public void addMenu(javax.swing.JMenu item, java.lang.String ID)
- Adds a submenu in a menu designed by an ID string.
addMenuItem
public void addMenuItem(javax.swing.JMenuItem item, java.lang.String ID)
- Adds an item in a menu designed by an ID string.
reset
public void reset()
- Restores the menu bar.
getJextFrame
private org.jext.JextFrame getJextFrame()
- Get the parent JextFrame
finalize
protected void finalize()
throws java.lang.Throwable
- Patch
-> Memory management improvements : it may help the garbage collector.
-> Author : Julien Ponge (julien@izforge.com)
-> Date : 23, May 2001
|
|||||||||
| Home >> All >> org >> jext >> [ menus overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC