Microsoft SDK for Java

Timer Class

The Timer Class of the com.ms.util package implements a timer event source.

public class Timer
{
  // Constructors
  public Timer(long p);
  public Timer(long p, int id);
  public Timer(long p, boolean r);
  public Timer(long p, int id boolean r);
  public Timer(TimerListener defaultListener, long p);
  public Timer(TimerListener defaultListener, long p, int id);
  public Timer(TimerListener defaultListener, long p, boolean r);
  public Timer(TimerListener defaultListener, long p, int id,
        boolean r);
  public Timer(TaskManager tm, long p);
  public Timer(TaskManager tm, long p, int id);
  public Timer(TaskManager tm, long p, boolean r);
  public Timer(TaskManager tm, long pint id, boolean r);
  public Timer(TaskManager tm, TimeListener defaultListener,
        long p);
  public Timer(TaskManager tm, TimeListener defaultListener
        long p, int id);
  public Timer(TaskManager tm, TimeListener defaultListener
        long p, boolean r);
  public Timer(TaskManager tm, TimeListener defaultListener
        long p, int id, boolean r);

  // Methods
  public void addTimerListener(TimerListener listener);
  public long getPeriod();
  public boolean getRepeat();
  public int getUserID();
  public boolean isRunning();
  public void removeTimerListener(TimerListener listener);
  public void start();
  public void stop();
}

© 1999 Microsoft Corporation. All rights reserved. Terms of use.