org.proteinshader.gui.listeners.menubar
Class ToolsMenuListenerFactory

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

public class ToolsMenuListenerFactory
extends Object

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


Constructor Summary
ToolsMenuListenerFactory(Mediator mediator)
          Constructs a ToolsMenuListenerFactory.
 
Method Summary
 ItemListener createControlPanelCheckBoxListener()
          Creates an item listener for the "Control Panel" check box menu item.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ToolsMenuListenerFactory

public ToolsMenuListenerFactory(Mediator mediator)
Constructs a ToolsMenuListenerFactory.

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

createControlPanelCheckBoxListener

public ItemListener createControlPanelCheckBoxListener()
Creates an item listener for the "Control Panel" check box menu item. When the item listener is called, it will open the control panel frame if the check box is selected or hide it if the check box is deselected.

Returns:
The item listener.


Copyright © 2007-2008