org.annotation.gui
Class MenuBarManager

java.lang.Object
  extended byorg.annotation.gui.MenuBarManager
All Implemented Interfaces:
java.awt.event.ActionListener, EventListener, java.util.EventListener

public class MenuBarManager
extends java.lang.Object
implements EventListener, java.awt.event.ActionListener


Method Summary
 void actionPerformed(java.awt.event.ActionEvent evt)
           
 void addMenu(javax.swing.JMenu menu1, javax.swing.JMenu menu2, java.lang.String name)
           
 void addMenu(javax.swing.JMenu menu, java.lang.String name)
           
 void addMenuItem(java.lang.String eventType, javax.swing.JMenu menu, javax.swing.JCheckBoxMenuItem item)
           
 void addMenuItem(java.lang.String eventType, javax.swing.JMenu menu, javax.swing.JMenuItem item)
           
 void addMenuItem(java.lang.String eventType, javax.swing.JMenu menu, javax.swing.JMenuItem item, int ke)
           
 void addMenuItem(java.lang.String eventType, javax.swing.JMenu menu, javax.swing.JMenuItem item, int ke, int mods)
           
 void addMenuItem(java.lang.String eventType, javax.swing.JMenu menu, javax.swing.JRadioButtonMenuItem item)
           
 void addSeparator(javax.swing.JMenu menu)
           
 void disableMenuItem(javax.swing.JMenu menu, java.lang.String name)
           
 void enableMenuItem(javax.swing.JMenu menu, java.lang.String name)
           
 boolean eventTranspired(java.lang.String eventType, java.lang.Object source)
           
static MenuBarManager getInstance()
           
 javax.swing.JMenu getMenu(java.lang.String name)
           
 javax.swing.JMenuBar getMenuBar()
           
static MenuBarManager getMenuBarManager()
           
 void hideMenuItem(javax.swing.JMenu menu, java.lang.String name)
           
 java.awt.Component removeMenuItem(javax.swing.JMenu menu, java.lang.String name)
           
 void setMenuIcon(javax.swing.JMenu menu, java.lang.String name, javax.swing.Icon icon)
           
 void showMenuItem(javax.swing.JMenu menu, java.lang.String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getMenuBarManager

public static MenuBarManager getMenuBarManager()

getInstance

public static MenuBarManager getInstance()

getMenuBar

public javax.swing.JMenuBar getMenuBar()

getMenu

public javax.swing.JMenu getMenu(java.lang.String name)

addMenu

public void addMenu(javax.swing.JMenu menu,
                    java.lang.String name)

addMenu

public void addMenu(javax.swing.JMenu menu1,
                    javax.swing.JMenu menu2,
                    java.lang.String name)

addMenuItem

public void addMenuItem(java.lang.String eventType,
                        javax.swing.JMenu menu,
                        javax.swing.JMenuItem item)

addMenuItem

public void addMenuItem(java.lang.String eventType,
                        javax.swing.JMenu menu,
                        javax.swing.JRadioButtonMenuItem item)

addMenuItem

public void addMenuItem(java.lang.String eventType,
                        javax.swing.JMenu menu,
                        javax.swing.JCheckBoxMenuItem item)

addMenuItem

public void addMenuItem(java.lang.String eventType,
                        javax.swing.JMenu menu,
                        javax.swing.JMenuItem item,
                        int ke)

addMenuItem

public void addMenuItem(java.lang.String eventType,
                        javax.swing.JMenu menu,
                        javax.swing.JMenuItem item,
                        int ke,
                        int mods)

addSeparator

public void addSeparator(javax.swing.JMenu menu)

setMenuIcon

public void setMenuIcon(javax.swing.JMenu menu,
                        java.lang.String name,
                        javax.swing.Icon icon)

hideMenuItem

public void hideMenuItem(javax.swing.JMenu menu,
                         java.lang.String name)

showMenuItem

public void showMenuItem(javax.swing.JMenu menu,
                         java.lang.String name)

removeMenuItem

public java.awt.Component removeMenuItem(javax.swing.JMenu menu,
                                         java.lang.String name)

enableMenuItem

public void enableMenuItem(javax.swing.JMenu menu,
                           java.lang.String name)

disableMenuItem

public void disableMenuItem(javax.swing.JMenu menu,
                            java.lang.String name)

eventTranspired

public boolean eventTranspired(java.lang.String eventType,
                               java.lang.Object source)
Specified by:
eventTranspired in interface EventListener

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent evt)
Specified by:
actionPerformed in interface java.awt.event.ActionListener


Copyright © 2004 Thomas Morton and Jeremy LaCivita. All Rights Reserved.