org.proteinshader.gui.listeners.menubar
Class HelpMenuListenerFactory

java.lang.Object
  extended by org.proteinshader.gui.listeners.menubar.HelpMenuListenerFactory

public class HelpMenuListenerFactory
extends Object

Creates all event listeners needed by the HelpMenu of the MainMenuBar.


Constructor Summary
HelpMenuListenerFactory(Mediator mediator, HelpMenu helpMenu)
          Constructs a HelpMenuListenerFactory.
 
Method Summary
 ActionListener createAboutMenuItemListener()
          Creates an action listener for the 'About' menu item.
 ActionListener createGraphicsCardMenuItemListener()
          Creates an action listener for the 'Graphic Card Info' menu item.
 ActionListener createLocalHelpMenuItemListener()
          Creates an action listener for the 'Open Local Help Files in Web Browser' menu item.
 ActionListener createSourceForgeMenuItemListener()
          Creates an action listener for the 'Go to ProteinShader Web Site' menu item.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HelpMenuListenerFactory

public HelpMenuListenerFactory(Mediator mediator,
                               HelpMenu helpMenu)
Constructs a HelpMenuListenerFactory.

Parameters:
mediator - the centralized Mediator object that listeners call on to accomplish their task.
Method Detail

createAboutMenuItemListener

public ActionListener createAboutMenuItemListener()
Creates an action listener for the 'About' menu item.

Returns:
The action listener.

createLocalHelpMenuItemListener

public ActionListener createLocalHelpMenuItemListener()
Creates an action listener for the 'Open Local Help Files in Web Browser' menu item.

Returns:
The action listener.

createSourceForgeMenuItemListener

public ActionListener createSourceForgeMenuItemListener()
Creates an action listener for the 'Go to ProteinShader Web Site' menu item.

Returns:
The action listener.

createGraphicsCardMenuItemListener

public ActionListener createGraphicsCardMenuItemListener()
Creates an action listener for the 'Graphic Card Info' menu item.

Returns:
The action listener.


Copyright © 2007-2008