org.proteinshader.gui.listeners
Class WindowListenerFactory

java.lang.Object
  extended by org.proteinshader.gui.listeners.WindowListenerFactory

public class WindowListenerFactory
extends Object

Creates a window listener for closing the retractable control panel that opens on the right-side of the GUI.


Constructor Summary
WindowListenerFactory(Mediator mediator)
          Constructs a WindowListenerFactory.
 
Method Summary
 WindowListener createControlFrameListener()
          Creates a window listener for the spring-loaded frame that holds the control panel.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WindowListenerFactory

public WindowListenerFactory(Mediator mediator)
Constructs a WindowListenerFactory.

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

createControlFrameListener

public WindowListener createControlFrameListener()
Creates a window listener for the spring-loaded frame that holds the control panel. When the frame's close box is clicked, the spring-loaded frame will be closed using animation.

Returns:
The window listener.


Copyright © 2007-2008