org.pietschy.command
Class DefaultMenuFactory

java.lang.Object
  extended by org.pietschy.command.DefaultMenuFactory
All Implemented Interfaces:
MenuFactory

public class DefaultMenuFactory
extends java.lang.Object
implements MenuFactory

Provides a default implementation of MenuFactory that creates standard swing menus.


Constructor Summary
DefaultMenuFactory()
           
 
Method Summary
 javax.swing.JCheckBoxMenuItem createCheckBoxMenuItem()
          Creates a new JCheckBoxMenuItem.
 javax.swing.JMenu createMenu()
          Creates a new JMenu.
 javax.swing.JMenuBar createMenuBar()
          Creates a new JMenuBar.
 javax.swing.JMenuItem createMenuItem()
          Creates a new JMenuItem.
 javax.swing.JPopupMenu createPopupMenu()
          Creates a new JPopupMenu.
 javax.swing.JRadioButtonMenuItem createRadioButtonMenuItem()
          Creates a new JRadioButtonMenuItem.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultMenuFactory

public DefaultMenuFactory()
Method Detail

createCheckBoxMenuItem

public javax.swing.JCheckBoxMenuItem createCheckBoxMenuItem()
Creates a new JCheckBoxMenuItem.

Specified by:
createCheckBoxMenuItem in interface MenuFactory
Returns:
a new JCheckBoxMenuItem.

createMenu

public javax.swing.JMenu createMenu()
Creates a new JMenu.

Specified by:
createMenu in interface MenuFactory
Returns:
a new JMenu.

createMenuItem

public javax.swing.JMenuItem createMenuItem()
Creates a new JMenuItem.

Specified by:
createMenuItem in interface MenuFactory
Returns:
a new JMenuItem.

createPopupMenu

public javax.swing.JPopupMenu createPopupMenu()
Creates a new JPopupMenu.

Specified by:
createPopupMenu in interface MenuFactory
Returns:
a new JPopupMenu.

createRadioButtonMenuItem

public javax.swing.JRadioButtonMenuItem createRadioButtonMenuItem()
Creates a new JRadioButtonMenuItem.

Specified by:
createRadioButtonMenuItem in interface MenuFactory
Returns:
a new JRadioButtonMenuItem.

createMenuBar

public javax.swing.JMenuBar createMenuBar()
Creates a new JMenuBar.

Specified by:
createMenuBar in interface MenuFactory
Returns:
a new JMenuBar.