Timer"
From Documentation
Tmillsclare (talk | contribs) |
Jumperchen (talk | contribs) |
||
Line 6: | Line 6: | ||
*Java API: <javadoc>org.zkoss.zul.Timer</javadoc> | *Java API: <javadoc>org.zkoss.zul.Timer</javadoc> | ||
*JavaScript API: <javadoc directory="jsdoc">zul.utl.Timer</javadoc> | *JavaScript API: <javadoc directory="jsdoc">zul.utl.Timer</javadoc> | ||
+ | *Style Guide: N/A | ||
= Employment/Purpose = | = Employment/Purpose = | ||
Line 19: | Line 20: | ||
</source> | </source> | ||
− | + | =Supported Events= | |
− | |||
− | |||
− | =Supported | ||
{| border="1" | width="100%" | {| border="1" | width="100%" | ||
Line 33: | Line 31: | ||
Denotes the timer you specified has triggered an event. To know which timer, invoke the <tt>getTarget</tt> method in the Event class. | Denotes the timer you specified has triggered an event. To know which timer, invoke the <tt>getTarget</tt> method in the Event class. | ||
|} | |} | ||
+ | *Inherited Supported Events: [[ZK_Component_Reference/Base_Components/HtmlBasedComponent#Supported_Events | HtmlBasedComponent]] | ||
=Supported Children= | =Supported Children= | ||
Line 38: | Line 37: | ||
*NONE | *NONE | ||
− | =Use | + | =Use Cases= |
{| border='1px' | width="100%" | {| border='1px' | width="100%" | ||
Line 49: | Line 48: | ||
=Version History= | =Version History= | ||
− | + | {{LastUpdated}} | |
{| border='1px' | width="100%" | {| border='1px' | width="100%" | ||
! Version !! Date !! Content | ! Version !! Date !! Content |
Revision as of 07:30, 19 November 2010
Timer
Employment/Purpose
Timer is a special component that is invisible. It fires one or more org.zkoss.zk.ui.event.Event after a specified delay. Notice that the timer won't fire any event until it is attached to a page.
Example
<label id="now" />
<timer id="timer" delay="1000" repeats="true"
onTimer="now.setValue(new Date().toString())" />
Supported Events
Event: Event
Denotes the timer you specified has triggered an event. To know which timer, invoke the getTarget method in the Event class. |
- Inherited Supported Events: HtmlBasedComponent
Supported Children
*NONE
Use Cases
Version | Description | Example Location |
---|---|---|
Version History
Version | Date | Content |
---|---|---|