Method Summary |
|
public void | addActionListener(ActionListener listener) |
synchronized void | cancelEvent() |
protected void | fireActionPerformed(ActionEvent e) Notify all listeners that have registered interest for
notification on this event type. |
public long | getDelay() Returns the Timer's delay. |
public long | getInitialDelay() Returns the Timer's initial delay. |
public static boolean | getLogTimers() Returns true if logging is enabled. |
public boolean | isCoalesce() Returns true if the Timer coalesces multiple pending
performCommand() messages. |
public boolean | isRepeats() Returns true if the Timer will send a actionPerformed()
message to its listeners multiple times. |
public boolean | isRunning() Returns true if the Timer is running. |
synchronized void | post() |
public void | removeActionListener(ActionListener listener) Removes an ActionListener from the Timer. |
public void | restart() Restarts a Timer, canceling any pending firings, and causing
it to fire with its initial dely. |
public void | setActionCommand(String command) Sets action command for this timer. |
public void | setCoalesce(boolean flag) Sets whether the Timer coalesces multiple pending ActionEvent firings.
A busy application may not be able
to keep up with a Timer's message generation, causing multiple
actionPerformed() message sends to be queued. |
public void | setDelay(long delay) |
public void | setInitialDelay(int initialDelay) Sets the Timer's initial delay. |
public static void | setLogTimers(boolean flag) Enables or disables the timer log. |
public void | setRepeats(boolean flag) If flag is false, instructs the Timer to send
actionPerformed() to its listeners only once, and then stop. |
public void | start() Starts the Timer, causing it to send actionPerformed() messages
to its listeners. |
public void | stop() Stops a Timer, causing it to stop sending actionPerformed()
messages to its Target. |
TimerQueue | timerQueue() Returns the timer queue. |