|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.awt.event.WindowAdapter com.croftsoft.core.gui.ShutdownWindowListener
public class ShutdownWindowListener
Performs a graceful shutdown of a program when the window is closed.
Example:
frame.addWindowListener (
new ShutdownWindowListener ( destroyables ) );
Java 1.1 compatible.
Constructor Summary | |
---|---|
ShutdownWindowListener()
Convenience constructor. |
|
ShutdownWindowListener(Destroyable destroyable)
Convenience constructor. |
|
ShutdownWindowListener(Destroyable[] destroyables)
Main constructor. |
Method Summary | |
---|---|
void |
windowClosing(WindowEvent windowEvent)
|
Methods inherited from class java.awt.event.WindowAdapter |
---|
windowActivated, windowClosed, windowDeactivated, windowDeiconified, windowGainedFocus, windowIconified, windowLostFocus, windowOpened, windowStateChanged |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ShutdownWindowListener(Destroyable[] destroyables)
destroyables
- May be null.public ShutdownWindowListener(Destroyable destroyable)
this ( new Destroyable [ ] { destroyable } );
public ShutdownWindowListener()
this ( ( Destroyable [ ] ) null );
Method Detail |
---|
public void windowClosing(WindowEvent windowEvent)
windowClosing
in interface WindowListener
windowClosing
in class WindowAdapter
|
CroftSoft Javadoc | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |