Checkbox"
From Documentation
Line 37: | Line 37: | ||
! <center>Event Type</center> | ! <center>Event Type</center> | ||
|- | |- | ||
− | | | + | | <center><tt>onRightClick</tt></center> |
− | | | + | | [#MouseEvent org.zkoss.zk.ui.event.MouseEvent] |
+ | |||
+ | |||
+ | <tt>'''Description:''' Denotes user has right-clicked the component.</tt> | ||
+ | |||
+ | |- | ||
+ | | <center><tt>onDoubleClick</tt></center> | ||
+ | | [#MouseEvent org.zkoss.zk.ui.event.MouseEvent] | ||
+ | |||
+ | |||
+ | <tt>'''Description:''' Denotes user has double-clicked the component.</tt> | ||
+ | |||
+ | |- | ||
+ | | <center><tt>onFocus</tt></center> | ||
+ | | [#Event org.zkoss.zk.ui.event.Event] | ||
+ | |||
+ | |||
+ | <tt>'''Description:''' Denotes when a component gets the focus.</tt> | ||
+ | |||
+ | |- | ||
+ | | <center><tt>onBlur</tt></center> | ||
+ | | [#Event org.zkoss.zk.ui.even.Event] | ||
+ | |||
+ | |||
+ | <tt>Description: Denotes when a component loses the focus.</tt> | ||
+ | |||
+ | |- | ||
+ | | <center>onCheck</center> | ||
+ | | [#CheckEvent org.zkoss.zk.ui.event.CheckEvent] | ||
+ | |||
+ | <tt>Description: Denotes when a component loses the focus.</tt> | ||
|} | |} | ||
Revision as of 07:48, 12 May 2010
Checkbox
Employment/Purpose
A checkbox.
Example
<window title="Checkbox demo" border="normal" width="350px">
<checkbox id="apple" label="Apple" onCheck="doChecked()" />
<checkbox id="orange" label="Orange" onCheck="doChecked()" />
<checkbox id="banana" label="Banana" onCheck="doChecked()" />
<hbox>
You have selected :
<label id="fruit2" />
</hbox>
<zscript> void doChecked() { fruit2.value = (apple.isChecked() ?
apple.label+' ' : "")
+ (orange.isChecked() ? orange.label+' ' : "")
+ (banana.isChecked() ? banana.label+' ' : "");
}
</zscript>
</window>
Supported events
[#MouseEvent org.zkoss.zk.ui.event.MouseEvent]
| |
[#MouseEvent org.zkoss.zk.ui.event.MouseEvent]
| |
[#Event org.zkoss.zk.ui.event.Event]
| |
[#Event org.zkoss.zk.ui.even.Event]
| |
[#CheckEvent org.zkoss.zk.ui.event.CheckEvent]
Description: Denotes when a component loses the focus. |
Supported Children
*ALL
Use cases
Version | Description | Example Location |
---|---|---|
5.0+ |
Version History
Version | Date | Content |
---|---|---|
5.x.x | x/x/20xx | Initialization |