Back to index

wims  3.65+svn20090927
Public Member Functions
ptolemy.gui.CloseListener Interface Reference

This is an interface for listeners that need to be informed when a window closes. More...

List of all members.

Public Member Functions

void windowClosed (Window window, String button)
 Notify that the specified window has closed.

Detailed Description

This is an interface for listeners that need to be informed when a window closes.

Note that this is a very small subset of what Java's WindowListener interface does. This class is a workaround for a bug in Java's AWT, where components are not informed in any way when the window that contains them is closed, even though they can have registered listeners. The listeners are never called, unless the component is a top-level window. A listener that implements this interface, by contrast, is informed regardless of whether it is at the top level. This is used, for example, by the ComponentDialog class.

See also:
ComponentDialog
Author:
Edward A. Lee
Version:
Id:
CloseListener.java,v 1.13 2005/07/08 19:59:07 cxh Exp
Since:
Ptolemy II 1.0 .ProposedRating Green (eal) .AcceptedRating Green (janneck)

Definition at line 53 of file CloseListener.java.


Member Function Documentation

void ptolemy.gui.CloseListener.windowClosed ( Window  window,
String  button 
)

Notify that the specified window has closed.

The second argument, if non-null, gives the name of the button that was used to close the window.

Parameters:
windowThe window that closed.
buttonThe name of the button that was used to close the window.

The documentation for this interface was generated from the following file: