Window"
Tmillsclare (talk | contribs) m |
Tmillsclare (talk | contribs) m (→Example) |
||
Line 18: | Line 18: | ||
= Example = | = Example = | ||
− | [[Image: | + | [[Image:ZKComRef_Window_Multiple_Examples.PNG]] |
<source lang="xml" > | <source lang="xml" > | ||
Line 32: | Line 32: | ||
</hbox> | </hbox> | ||
</source> | </source> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
=Supported events= | =Supported events= |
Revision as of 01:24, 21 April 2010
Window
Employement/Purpose
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.
Example
<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>
Supported events
Event: Event
Denotes the close button is pressed by a user, and the component shall detach itself. | |
Event: OpenEvent
Denotes user has opened or closed a component. Note: Unlike onClose, this event is only a notification. The client sends this event after opening or closing the component. It is useful to implement load-on-demand by listening to the onOpen event, and creating components when the first time the component is opened. | |
Event: Event
Denotes the close button is pressed by a user, and the component shall detach itself. | |
Event:KeyEvent
Denotes user has pressed the ENTER key. | |
Event:KeyEvent
Denotes user has pressed the ESC key. | |
Event: KeyEvent
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. |
Supported Children
*ALL
Use cases
Description | Example Location |
---|---|
How to create a modal Window and communicate with it | http://www.zkoss.org/forum/listComment/9785 |
Best practises on creating a pop-up window to display PDF reports | http://www.zkoss.org/forum/listComment/9305 |
Version History
Version | Date | Content |
---|---|---|
5.0.1 | 4/13/2010 | Initialization |