|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.MenuComponent | +--java.awt.MenuItem | +--java.awt.Menu | +--net.chaosserver.jtunes.swingui.menu.FileMenu
Constructs the File Menu for the application.
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 |
public static final String ACTION_OPEN
public static final String ACTION_EXPORT
public static final String ACTION_CLOSE
public static final String ACTION_SHOW_LICENSE
protected MenuItem openMenuItem
protected MenuItem exportMenuItem
protected MenuItem closeMenuItem
protected MenuItem showLicenseMenuItem
Constructor Detail |
public FileMenu()
Method Detail |
public void actionPerformed(ActionEvent evt)
actionPerformed
in interface ActionListener
evt
- events fired by the menu itemspublic void eventPerformed(JTunesApplicationEvent evt)
eventPerformed
in interface JTunesApplicationEventListener
evt
- application event
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |