Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.flexstor.common.awt.menu
Class FlexMenuBar  view FlexMenuBar download FlexMenuBar.java

java.lang.Object
  extended byjava.awt.MenuComponent
      extended byjava.awt.MenuBar
          extended bycom.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 Class Summary
 
Nested classes inherited from class java.awt.MenuBar
java.awt.MenuBar.AccessibleAWTMenuBar
 
Nested classes inherited from class java.awt.MenuComponent
java.awt.MenuComponent.AccessibleAWTMenuComponent
 
Field Summary
protected  com.flexstor.common.awt.ActionMulticaster actionMulticaster
           
protected  com.flexstor.common.awt.ActionCheckerI controller
           
protected  java.util.Vector vItems
           
 
Fields inherited from class java.awt.MenuBar
 
Fields inherited from class java.awt.MenuComponent
 
Constructor Summary
FlexMenuBar()
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
          Delegate action events from menus to the registered action listener of this menu bar.
 java.awt.Menu add(java.awt.Menu m)
          Track adding of a menu.
 void addActionListener(java.awt.event.ActionListener l)
           
 void addNotify()
          Creates this object's native peer.
 void dispose()
           
protected  java.util.Vector getActionItems()
          Gets all checkbox and menu items of this menu bar.
 java.util.Enumeration items()
          Returns all action menu items as an enumeration.
 void list(java.io.PrintStream ps)
          For debugging, list all action menu items
 void remove(int index)
          Track remove of a menu.
 void removeActionListener(java.awt.event.ActionListener l)
           
 void setEnabled(boolean bEnabled)
          Enables or disables all menu items in the menu bar
 void update(java.util.Observable c, java.lang.Object notifyCommand)
          Responds to a controller notification to update the enabled state of each menu item
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.awt.MenuContainer
getFont, postEvent
 

Field Detail

actionMulticaster

protected com.flexstor.common.awt.ActionMulticaster actionMulticaster

vItems

protected java.util.Vector vItems

controller

protected com.flexstor.common.awt.ActionCheckerI controller
Constructor Detail

FlexMenuBar

public FlexMenuBar()
Method Detail

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