SPT Core API

com.sptci.echo
Class WindowPaneCloseListener

java.lang.Object
  extended by com.sptci.echo.WindowPaneCloseListener
All Implemented Interfaces:
Serializable, EventListener, ActionListener

public class WindowPaneCloseListener
extends Object
implements ActionListener

A standard listener for cancel type buttons used to close a window pane.

© Copyright 2009 Sans Pareil Technologies, Inc.

Version:
$Id: WindowPaneCloseListener.java 4865 2009-08-18 20:12:40Z rakesh $
Author:
Rakesh Vidyadharan 2009-08-17
See Also:
Serialized Form

Constructor Summary
WindowPaneCloseListener()
           
 
Method Summary
 void actionPerformed(ActionEvent event)
          Find the parent window pane of the source of the event, and close it.
protected  WindowPane getWindowPane(Component source)
          Find the window pane that is the parent of the specified source in the component hierarchy.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WindowPaneCloseListener

public WindowPaneCloseListener()
Method Detail

actionPerformed

public void actionPerformed(ActionEvent event)
Find the parent window pane of the source of the event, and close it.

Specified by:
actionPerformed in interface ActionListener
Parameters:
event - The event that was triggered by a close control.

getWindowPane

protected WindowPane getWindowPane(Component source)
Find the window pane that is the parent of the specified source in the component hierarchy.

Parameters:
source - The component whose parent window pane is to be retrieved.
Returns:
The parent window pane or null if the source is not the child of a window pane in the component hierarchy.

SPT Core API