net.chaosserver.jtunes.swingui.menu
Class FileMenu

java.lang.Object
  |
  +--java.awt.MenuComponent
        |
        +--java.awt.MenuItem
              |
              +--java.awt.Menu
                    |
                    +--net.chaosserver.jtunes.swingui.menu.FileMenu
All Implemented Interfaces:
Accessible, ActionListener, EventListener, JTunesApplicationEventListener, MenuContainer, Serializable

public class FileMenu
extends Menu
implements ActionListener, JTunesApplicationEventListener

Constructs the File Menu for the application.

See Also:
Serialized Form

Field Summary
static String ACTION_CLOSE
          Name of the action action command fired for by the close menu item.
static String ACTION_EXPORT
          Name of the action action command fired for by the export menu item.
static String ACTION_OPEN
          Name of the action action command fired for by the open menu item.
static String ACTION_SHOW_LICENSE
          Name of the action action command fired to show the license.
protected  MenuItem closeMenuItem
          Holds the close menu item.
protected  MenuItem exportMenuItem
          Holds the export menu item.
protected  MenuItem openMenuItem
          Holds the open menu item.
protected  MenuItem showLicenseMenuItem
          Holds the show license menu item.
 
Constructor Summary
FileMenu()
          Constructs the FileMenu.
 
Method Summary
 void actionPerformed(ActionEvent evt)
          Listens for actions fired by the menu commands and converts them into application level events.
 void eventPerformed(JTunesApplicationEvent evt)
          Listens for application events and enables/disabled menu items as needed.
 
Methods inherited from class java.awt.Menu
add, add, addNotify, addSeparator, countItems, getAccessibleContext, getItem, getItemCount, insert, insert, insertSeparator, isTearOff, paramString, remove, remove, removeAll, removeNotify
 
Methods inherited from class java.awt.MenuItem
addActionListener, deleteShortcut, disable, disableEvents, enable, enable, enableEvents, getActionCommand, getActionListeners, getLabel, getListeners, getShortcut, isEnabled, processActionEvent, processEvent, removeActionListener, setActionCommand, setEnabled, setLabel, setShortcut
 
Methods inherited from class java.awt.MenuComponent
dispatchEvent, getFont, getName, getParent, getPeer, getTreeLock, postEvent, 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

ACTION_OPEN

public static final String ACTION_OPEN
Name of the action action command fired for by the open menu item.

See Also:
Constant Field Values

ACTION_EXPORT

public static final String ACTION_EXPORT
Name of the action action command fired for by the export menu item.

See Also:
Constant Field Values

ACTION_CLOSE

public static final String ACTION_CLOSE
Name of the action action command fired for by the close menu item.

See Also:
Constant Field Values

ACTION_SHOW_LICENSE

public static final String ACTION_SHOW_LICENSE
Name of the action action command fired to show the license.

See Also:
Constant Field Values

openMenuItem

protected MenuItem openMenuItem
Holds the open menu item.


exportMenuItem

protected MenuItem exportMenuItem
Holds the export menu item.


closeMenuItem

protected MenuItem closeMenuItem
Holds the close menu item.


showLicenseMenuItem

protected MenuItem showLicenseMenuItem
Holds the show license menu item.

Constructor Detail

FileMenu

public FileMenu()
Constructs the FileMenu.

Method Detail

actionPerformed

public void actionPerformed(ActionEvent evt)
Listens for actions fired by the menu commands and converts them into application level events.

Specified by:
actionPerformed in interface ActionListener
Parameters:
evt - events fired by the menu items

eventPerformed

public void eventPerformed(JTunesApplicationEvent evt)
Listens for application events and enables/disabled menu items as needed.

Specified by:
eventPerformed in interface JTunesApplicationEventListener
Parameters:
evt - application event


Copyright ?? 20030801