Timer"

From Documentation
m ((via JWB))
 
(One intermediate revision by the same user not shown)
Line 20: Line 20:
 
=Supported Events=
 
=Supported Events=
  
{| border="1" | width="100%"
+
{| class='wikitable' | width="100%"
 
! <center>Name</center>
 
! <center>Name</center>
 
! <center>Event Type</center>
 
! <center>Event Type</center>
 
|-
 
|-
| <center><tt>onTimer</tt></center>
+
| <center><code>onTimer</code></center>
 
| '''Event:''' <javadoc>org.zkoss.zk.ui.event.Event</javadoc>
 
| '''Event:''' <javadoc>org.zkoss.zk.ui.event.Event</javadoc>
  
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 <code>getTarget</code> method in the Event class.
 
|}
 
|}
 
*Inherited Supported Events: [[ZK_Component_Reference/Base_Components/HtmlBasedComponent#Supported_Events | HtmlBasedComponent]]
 
*Inherited Supported Events: [[ZK_Component_Reference/Base_Components/HtmlBasedComponent#Supported_Events | HtmlBasedComponent]]
Line 37: Line 37:
 
=Use Cases=
 
=Use Cases=
  
{| border='1px' | width="100%"
+
{| class='wikitable' | width="100%"
 
! Version !! Description !! Example Location
 
! Version !! Description !! Example Location
 
|-
 
|-
Line 47: Line 47:
 
=Version History=
 
=Version History=
 
{{LastUpdated}}
 
{{LastUpdated}}
{| border='1px' | width="100%"
+
{| class='wikitable' | width="100%"
 
! Version !! Date !! Content
 
! Version !! Date !! Content
 
|-
 
|-

Latest revision as of 10:40, 12 January 2022

Timer

  • Demonstration: Timer
  • Java API: Timer
  • JavaScript API: Timer
  • Style Guide: N/A

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

Name
Event Type
onTimer
Event: Event

Denotes the timer you specified has triggered an event. To know which timer, invoke the getTarget method in the Event class.

Supported Children

*NONE

Use Cases

Version Description Example Location
     

Version History

Last Update : 2022/01/12


Version Date Content
     



Last Update : 2022/01/12

Copyright © Potix Corporation. This article is licensed under GNU Free Documentation License.