A timer is an invisible component used to send the onTimer event to the server at the specified time or period. You could control a timer by the start and stop methods.
<window title="Timer demo" border="normal"> <label id="now"/> <timer id="timer" delay="1000" repeats="true" onTimer="now.setValue(new Date().toString())"/> <separator bar="true"/> <button label="Stops timer" onClick="timer.stop()"/> <button label="Starts timer" onClick="timer.start()"/> </window>