The
windowClosed
event handler is a special user-defined
Function
that can be added to a window, either native or internal, when it is created
and that will be called automatically with a single
WindowEvent
argument after the window has been disposed.
A
windowClosed
event handler can only be added via
addEventHandler
after a window is created,
but an existing
windowClosed
event handler can be assigned new values.
Assigning
NULL
to
windowClosed
disables its functionality until a
non-NULL
value is assigned to it.
A window that has been disposed will not be visible and cannot reused, so
windowClosed
is normally only used when bookkeeping or additional cleanup work needs
to be done after a window is disposed.
Windows that are closed using their close button, the system menu,
or a system dependent keystroke and that choose not to ignore the
closing action using a
windowClosing
event handler are automatically disposed by the Yoix interpreter,
which means their
windowClosed
event handler will also be called.
| |
| Return: |
none
| | |
| See Also: |
actionPerformed,
addEventHandler,
adjustmentValueChanged,
caretUpdate,
componentHidden,
componentMoved,
componentResized,
componentShown,
dragDropEnd,
dragEnter,
dragExit,
dragGestureRecognized,
dragMouseMoved,
dragOver,
drop,
dropActionChanged,
Event,
focusGained,
focusLost,
hyperlinkActivated,
hyperlinkEntered,
hyperlinkExited,
invocationAction,
invocationBrowse,
invocationChange,
invocationEdit,
invocationEditImport,
invocationEditKey,
invocationRun,
invocationSelection,
itemStateChanged,
keyPressed,
keyReleased,
keyTyped,
mouseClicked,
mouseDragged,
mouseEntered,
mouseExited,
mouseMoved,
mousePressed,
mouseReleased,
mouseWheelMoved,
removeEventHandler,
stateChanged,
textValueChanged,
valueChanged,
windowActivated,
windowClosing,
windowDeactivated,
windowDeiconified,
WindowEvent,
windowIconified,
windowOpened
|
|