[ 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. |
|
Hide the window instead of closing it. |
|
Release window resources and remove it from display. |
|
Terminate the entire application. |
Examples:
window.closeOperation(Window.CloseOperation.Exit); // setting most common window close operation
