jbcl.util Package
java.lang.Object +----com.borland.jbcl.util.Timer
Constructors Properties Methods
The Timer
class performs one or more tasks at given intervals.
The startTimer()
method registers a com.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.
public Timer()This constructor should not be used since all
Timer
class methods are static.
public static void startTimer(TimerClient client, int eventId, long delay, boolean repeat)
public static void stopTimer(TimerClient client, int eventId)