designtools
Class StandardMenu
java.lang.Object
designtools.StandardMenu
- Direct Known Subclasses:
- CircuitEditorMenu
- public class StandardMenu
- extends java.lang.Object
Contains a common menu object containing menu items for all windows.
Unfortunately a class that extends javax.swing.JMenu cannot be used
because JFrame.addMenu insists on a JMenuBar object and casting wouldn't work
|
Field Summary |
protected javax.swing.JMenu |
helpMenu
|
protected javax.swing.JMenuBar |
menuBar
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
menuBar
protected javax.swing.JMenuBar menuBar
helpMenu
protected javax.swing.JMenu helpMenu
StandardMenu
public StandardMenu()
getMenuBar
public javax.swing.JMenuBar getMenuBar()
- Returns:
- The common menu bar
getSaveMenuItem
public javax.swing.JMenuItem getSaveMenuItem()
- Returns:
- The "Create New Chip" menu item so that the correct actionListener can be added
getExitMenuItem
public javax.swing.JMenuItem getExitMenuItem()
- Returns:
- The "Exit" menu item so that the correct actionListener can be added
getNewMenuItem
public javax.swing.JMenuItem getNewMenuItem()
- Returns:
- The "New" menu item so that the correct actionListener can be added