java.lang.Object
java.awt.MenuComponent
java.awt.MenuBar
com.flexstor.common.awt.menu.FlexMenuBar
- All Implemented Interfaces:
- javax.accessibility.Accessible, java.awt.event.ActionListener, java.util.EventListener, java.awt.MenuContainer, java.util.Observer, java.io.Serializable
- public abstract class FlexMenuBar
- extends java.awt.MenuBar
- implements java.util.Observer, java.awt.event.ActionListener
| Nested classes inherited from class java.awt.MenuBar |
java.awt.MenuBar.AccessibleAWTMenuBar |
| Nested classes inherited from class java.awt.MenuComponent |
java.awt.MenuComponent.AccessibleAWTMenuComponent |
| Fields inherited from class java.awt.MenuBar |
|
| Methods inherited from class java.awt.MenuBar |
countMenus, deleteShortcut, getAccessibleContext, getHelpMenu, getMenu, getMenuCount, getShortcutMenuItem, remove, removeNotify, setHelpMenu, shortcuts |
| Methods inherited from class java.awt.MenuComponent |
dispatchEvent, getFont, getName, getParent, getPeer, getTreeLock, paramString, postEvent, processEvent, setFont, setName, toString |
actionMulticaster
protected com.flexstor.common.awt.ActionMulticaster actionMulticaster
vItems
protected java.util.Vector vItems
controller
protected com.flexstor.common.awt.ActionCheckerI controller
FlexMenuBar
public FlexMenuBar()
getActionItems
protected java.util.Vector getActionItems()
- Gets all checkbox and menu items of this menu bar.
Delegates to each menu.
addNotify
public void addNotify()
- Description copied from class:
java.awt.MenuBar
- Creates this object's native peer.
dispose
public void dispose()
setEnabled
public void setEnabled(boolean bEnabled)
- Enables or disables all menu items in the menu bar
update
public void update(java.util.Observable c,
java.lang.Object notifyCommand)
- Responds to a controller notification to update the
enabled state of each menu item
- Specified by:
update in interface java.util.Observer
items
public java.util.Enumeration items()
- Returns all action menu items as an enumeration.
list
public void list(java.io.PrintStream ps)
- For debugging, list all action menu items
addActionListener
public void addActionListener(java.awt.event.ActionListener l)
removeActionListener
public void removeActionListener(java.awt.event.ActionListener l)
remove
public void remove(int index)
- Track remove of a menu.
Remove also this from the listener list of that menu.
add
public java.awt.Menu add(java.awt.Menu m)
- Track adding of a menu.
Add this to the listener list of that menu.
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)
- Delegate action events from menus to the registered action listener
of this menu bar.
- Specified by:
actionPerformed in interface java.awt.event.ActionListener