class %ZEN.Component.timer
extends component
Client-side timer object.
This component automatically creates a javascript timer object within
the client and initializes it when the page is first loaded.
The timer is one-shot; after it fires its ontimeout event, you
must restart it by calling the client startTimer method.
parameter DEFAULTVISIBLE = 0;
this component is not visible.
property ontimeout
as %ZEN.Datatype.eventHandler;
ontimeout event handler:
Client code to run when timeout expires.
property timeout
as %ZEN.Datatype.integer(MINVAL=0);
Timeout value (in milliseconds).
Setting this to 0 will disable the timer.
method clearTimer()
[ Language = javascript ]
Clear the timer object used by this component.
method onDelete()
[ Language = javascript ]
This client method, if present, is called when this component is
removed from the page.
method onloadHandler()
[ Language = javascript ]
This client event is fired when the page is loaded.
method setProperty(property, value, value2)
[ Language = javascript ]
Set the value of a named property.
method startTimer()
[ Language = javascript ]
Start the timer.