WindowEvent Module
The WindowEvent module has the following event types:
WindowCreated
The WindowCreated event occurs when a window is created. This event is similar to the ACL window create callback.
It is impossible to register a WindowCreated event listener in a Window object; if the Window object exists, the window has already been created. WindowCreated event listeners need to be registered in the Application object.
The WindowCreated event type bubbles to the Application object.
◦ Bubbles: Yes
◦ Cancelable: No
◦ Context Info: None
WindowLoad
This event type is triggered when a window is opened at the first time.
The WindowLoad event type bubbles to the Application object.
◦ Bubbles: No
◦ Cancelable: No
◦ Context Info: None
WindowClosing
This event type is triggered when the user requests a window be closed through the system menu, through a close button on a window's title bar, or through a platform-defined keystroke, such as Alt-F4 on Windows.
The WindowClosing event type bubbles to the Application object.
◦ Bubbles: No
◦ Cancelable: Yes
◦ Context Info: None
WindowClosed
This event type is triggered after a window is disposed.
The WindowClosed event type bubbles to the Application object.
◦ Bubbles: No
◦ Cancelable: No
◦ Context Info: None
WindowActivated
This event type is triggered when a window is activated, that is, when it is given the keyboard focus and becomes the active window.
The WindowActivated event type bubbles to the Application object.
◦ Bubbles: No
◦ Cancelable: No
◦ Context Info: None
WindowDeactivated
This event type is triggered when a window ceases to be the active window.
The WindowDeactivated event type bubbles to the Application object.
◦ Bubbles: No
◦ Cancelable: No
◦ Context Info: None
WindowMinimized
This event type is triggered when the user minimizes a window.
The WindowMinimized event type bubbles to the Application object.
◦ Bubbles: No
◦ Cancelable: No
◦ Context Info: None
WindowRestored
This event type is triggered when a window is restored from a minimized state to its previous displayed window size and position.
The WindowRestored event type bubbles to the Application object.
◦ Bubbles: No
◦ Cancelable: No
◦ Context Info: None