[ static enum ] CloseOperation

Class: Window.

Description:

Represents the behavior when a close button is clicked or close() method is called.
Applies to Window and InternalWindow components.

Type: number

Properties:

Name Description

Nothing

Do nothing; the close button has no effect. WindowEvent with type "closing" still gets emitted to report intent to close.

Hide

Hide the window instead of closing it.

Dispose

Release window resources and remove it from display. Emits 2 WindowEvent events, with type "closing" and with "close".

Exit

Terminate the entire application. Emits 2 WindowEvent events, with type "closing" and with "close".

Examples:

window.closeOperation(Window.CloseOperation.Exit); // setting most common window close operation

Also See: