public class WindowClosingHandler extends WindowAdapter
Constructor and Description |
---|
WindowClosingHandler(Window window,
Action action)
Creates a new window closing handler
|
Modifier and Type | Method and Description |
---|---|
void |
windowClosing(WindowEvent e)
Invokes exit() on the UI controller when a window closing event
is received.
|
windowActivated, windowClosed, windowDeactivated, windowDeiconified, windowGainedFocus, windowIconified, windowLostFocus, windowOpened, windowStateChanged
public WindowClosingHandler(Window window, Action action)
window
- the window to listen toaction
- the action to invoke on window closingpublic void windowClosing(WindowEvent e)
windowClosing
in interface WindowListener
windowClosing
in class WindowAdapter
e
- the event that was fied