designtools
Class StandardMenu

java.lang.Object
  extended bydesigntools.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
           
 
Constructor Summary
StandardMenu()
           
 
Method Summary
 javax.swing.JMenuItem getExitMenuItem()
           
 javax.swing.JMenuBar getMenuBar()
           
 javax.swing.JMenuItem getNewMenuItem()
           
 javax.swing.JMenuItem getSaveMenuItem()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

menuBar

protected javax.swing.JMenuBar menuBar

helpMenu

protected javax.swing.JMenu helpMenu
Constructor Detail

StandardMenu

public StandardMenu()
Method Detail

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