com.sptci.echo
Class WindowPaneCloseListener
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WindowPaneCloseListener
public WindowPaneCloseListener()
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.