Checkbox"
From Documentation
Line 38: | Line 38: | ||
|- | |- | ||
| <center><tt>onRightClick</tt></center> | | <center><tt>onRightClick</tt></center> | ||
− | | | + | |<javadoc>org.zkoss.zk.ui.event.MouseEvent</javadoc> |
Line 45: | Line 45: | ||
|- | |- | ||
| <center><tt>onDoubleClick</tt></center> | | <center><tt>onDoubleClick</tt></center> | ||
− | | | + | | <javadoc>org.zkoss.zk.ui.event.MouseEvent</javadoc> |
Line 52: | Line 52: | ||
|- | |- | ||
| <center><tt>onFocus</tt></center> | | <center><tt>onFocus</tt></center> | ||
− | | | + | | <javadoc>org.zkoss.zk.ui.event.Event</javadoc> |
Line 59: | Line 59: | ||
|- | |- | ||
| <center><tt>onBlur</tt></center> | | <center><tt>onBlur</tt></center> | ||
− | | | + | | <javadoc>org.zkoss.zk.ui.event.Event</javadoc> |
Line 66: | Line 66: | ||
|- | |- | ||
| <center>onCheck</center> | | <center>onCheck</center> | ||
− | | | + | | <javadoc>org.zkoss.zk.ui.event.CheckEvent</javadoc> |
<tt>Description: Denotes when a component loses the focus.</tt> | <tt>Description: Denotes when a component loses the focus.</tt> |
Revision as of 11:27, 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
| |
MouseEvent
| |
Event
| |
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 |