borland Packages  Class Hierarchy  jbcl.util Package  Index 

Timer component

java.lang.Object
   +----borland.jbcl.util.Timer

About the Timer component

Constructors  Properties  Methods  

The Timer class performs one or more tasks at given intervals. The startTimer() method registers a borland.jbcl.util.TimerClient with an id, interval and repeat value. When the time is up, the client is notified and the id is passed for reference. If the repeat property is true, the time continues to fire at the interval until stopped. The stopTimer() can be used to kill a pending or repeating timer. The constructor should not be used since all the methods are static.


Timer constructors

Timer properties

*Read-only properties **Write-only properties

Properties implemented in java.lang.Object

Timer methods

Methods implemented in this class

Methods implemented in java.lang.Object


Timer constructors

Timer()

  public Timer()
This constructor should not be used since all Timer class methods are static.

Timer methods

startTimer(borland.jbcl.util.TimerClient, int, long, boolean)

  public static void startTimer(borland.jbcl.util.TimerClient client, int eventId, long delay, boolean repeat)

stopTimer(borland.jbcl.util.TimerClient, int)

  public static void stopTimer(borland.jbcl.util.TimerClient client, int eventId)