A window is, like HTML DIV tag, used to group components. Unlike other components, a window has the following characteristics.
A window is an owner of an ID space. Any component contained in a window, including itself, could be found by use of the getFellow method, if it is assigned with an identifier.
A window could be overlapped, popup, and embedded.
A window could be a modal dialog.
<hbox> <window title="Embedded Style" border="normal" width="200px"> Hello, Embedded! </window> <window title="Cyan Style" sclass="wndcyan" border="normal" width="200px"> Hello, Cyan! </window> <window title="Popup Style" sclass="popup" border="normal" width="200px"> Hello, Popup! </window> <window title="Modal Style" sclass="modal" border="normal" width="200px"> Hello, Modal! </window> </hbox>
Name |
Event Type |
---|---|
|
Event:
Denotes the close button is pressed by a user, and the component shall detach itself. |
|
Event:
Denotes user has opened or closed a component.
Unlike client sends this event after opening or closing the component. It is useful to implement load-on-demand by listening to the first time the component is opened. |
|
Event:
Denotes the close button is pressed by a user, and the component shall detach itself. |
|
Event: Denotes user has pressed the ENTER key. |
|
Event:
|
onCtrlKey |
Event:
Denotes user has pressed a special key, such as PgUp, Home and a key combined with the Ctrl or Alt key. Refer to the ctrlKeys Property section below for details. |
Property |
Description |
Data Type |
Default Value |
---|---|---|---|
|
Sets the border Values: |
|
|
|
Sets whether to show a close button on the title bar. |
|
|
|
Sets the CSS style for the content block of the window. |
|
|
|
Sets what keystrokes to intercept. |
|
|
|
|
| |
|
Sets the mode of window. Values: |
|
|
|
Sets how to position the window at the client screen. |
|
|
|
Sets whether the window is sizable. |
|
|
|
Sets the title. |
|
|
|
Changes the visibility of the window. |
|
|
Name |
Description |
Return Data Type |
---|---|---|
|
| |
|
Makes this window as embeded with other components |
|
|
Makes this window as highlited. |
|
|
Makes this window as a modal dialog. |
|
|
Makes this window as overlapped with other components. |
|
|
Makes this window as popup, which is overlapped with other component and auto-hiden when user clicks outside of the window. |
|
|
Returns the style class used for the content block. |
|
|
| |
|
Returns the style class used for the title. |
|
|
Returns whether this is embedded with other components |
|
|
Returns whether this is a highlighted window. |
|
|
Returns whether this is a modal dialog. |
|
|
Returns whether this is a overlapped window. |
|
|
Returns whether this is a popup window. |
|
|
| |
|
| |
|
Process the onClose event sent when the close button is pressed. |
|
|
Process the onModal event by making itself a modal window. |
|
|
| |
|
|
Inherited From