sun.beanbox
Class WindowCloser
java.lang.Object
|
+--sun.beanbox.WindowCloser
- 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. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
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.
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