[ 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 |
|---|---|
|
Do nothing; the close button has no effect. WindowEvent with type "closing" still gets emitted to report intent to close. |
|
Hide the window instead of closing it. |
|
Release window resources and remove it from display. Emits 2 WindowEvent events, with type "closing" and with "close". |
|
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
