net.sourceforge.esw.widgets
Class CloseListener

java.lang.Object
  |
  +--java.awt.event.WindowAdapter
        |
        +--net.sourceforge.esw.widgets.CloseListener
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener, java.awt.event.WindowListener

public class CloseListener
extends java.awt.event.WindowAdapter
implements java.awt.event.ActionListener

Closes down a window... will notify a lock

See Also:
INode

Field Summary
protected  boolean exit
           
protected  javax.swing.JFrame frame
           
protected  java.lang.Object lockObject
           
protected  boolean wait
           
 
Constructor Summary
CloseListener(javax.swing.JFrame aFrame, boolean bExit)
          Creates a new CloseListener
CloseListener(javax.swing.JFrame aFrame, boolean bExit, boolean bWait, java.lang.Object lObj)
          Creates a new CloseListener
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent ae)
          the windows is now closing
 void windowClosing(java.awt.event.WindowEvent we)
          the windows is now closing
 
Methods inherited from class java.awt.event.WindowAdapter
windowActivated, windowClosed, windowDeactivated, windowDeiconified, windowIconified, windowOpened
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

frame

protected javax.swing.JFrame frame

wait

protected boolean wait

exit

protected boolean exit

lockObject

protected java.lang.Object lockObject
Constructor Detail

CloseListener

public CloseListener(javax.swing.JFrame aFrame,
                     boolean bExit,
                     boolean bWait,
                     java.lang.Object lObj)
Creates a new CloseListener
Parameters:
aFrame -  
bWait -  
lObj -  

CloseListener

public CloseListener(javax.swing.JFrame aFrame,
                     boolean bExit)
Creates a new CloseListener
Parameters:
aFrame -  
bWait -  
lObj -  
Method Detail

windowClosing

public void windowClosing(java.awt.event.WindowEvent we)
the windows is now closing
Overrides:
windowClosing in class java.awt.event.WindowAdapter

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent ae)
the windows is now closing
Specified by:
actionPerformed in interface java.awt.event.ActionListener


Copyright 2002 Free Software Foundation. All Rights Reserved.