rcx.rcxtools.filebrowser
Class WindowCloser

java.lang.Object
  extended by rcx.rcxtools.filebrowser.WindowCloser
All Implemented Interfaces:
java.awt.event.WindowListener, java.util.EventListener

public class WindowCloser
extends java.lang.Object
implements java.awt.event.WindowListener


Constructor Summary
WindowCloser(java.awt.Window w)
          Create an adaptor to listen for window closing events on the given window and actually perform the close.
WindowCloser(java.awt.Window w, boolean exitOnClose)
          Create an adaptor to listen for window closing events on the given window and actually perform the close.
 
Method Summary
 void windowActivated(java.awt.event.WindowEvent e)
           
 void windowClosed(java.awt.event.WindowEvent e)
           
 void windowClosing(java.awt.event.WindowEvent e)
           
 void windowDeactivated(java.awt.event.WindowEvent e)
           
 void windowDeiconified(java.awt.event.WindowEvent e)
           
 void windowIconified(java.awt.event.WindowEvent e)
           
 void windowOpened(java.awt.event.WindowEvent e)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WindowCloser

public WindowCloser(java.awt.Window w)
Create an adaptor to listen for window closing events on the given window and actually perform the close.


WindowCloser

public WindowCloser(java.awt.Window w,
                    boolean exitOnClose)
Create an adaptor to listen for window closing events on the given window and actually perform the close. If "exitOnClose" is true we do a System.exit on close.

Method Detail

windowOpened

public void windowOpened(java.awt.event.WindowEvent e)
Specified by:
windowOpened in interface java.awt.event.WindowListener

windowClosing

public void windowClosing(java.awt.event.WindowEvent e)
Specified by:
windowClosing in interface java.awt.event.WindowListener

windowClosed

public void windowClosed(java.awt.event.WindowEvent e)
Specified by:
windowClosed in interface java.awt.event.WindowListener

windowIconified

public void windowIconified(java.awt.event.WindowEvent e)
Specified by:
windowIconified in interface java.awt.event.WindowListener

windowDeiconified

public void windowDeiconified(java.awt.event.WindowEvent e)
Specified by:
windowDeiconified in interface java.awt.event.WindowListener

windowActivated

public void windowActivated(java.awt.event.WindowEvent e)
Specified by:
windowActivated in interface java.awt.event.WindowListener

windowDeactivated

public void windowDeactivated(java.awt.event.WindowEvent e)
Specified by:
windowDeactivated in interface java.awt.event.WindowListener