csheets.ui
Class WindowClosingHandler
java.lang.Object
java.awt.event.WindowAdapter
csheets.ui.WindowClosingHandler
- All Implemented Interfaces:
- WindowFocusListener, WindowListener, WindowStateListener, EventListener
public class WindowClosingHandler
- extends WindowAdapter
A window adapter that invokes an action on window closing.
- Author:
- Einar Pehrson
|
Method Summary |
void |
windowClosing(WindowEvent e)
Invokes exit() on the UI controller when a window closing event
is received. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WindowClosingHandler
public WindowClosingHandler(Window window,
Action action)
- Creates a new window closing handler
- Parameters:
window - the window to listen toaction - the action to invoke on window closing
windowClosing
public void windowClosing(WindowEvent e)
- Invokes exit() on the UI controller when a window closing event
is received.
- Specified by:
windowClosing in interface WindowListener- Overrides:
windowClosing in class WindowAdapter
- Parameters:
e - the event that was fied