home *** CD-ROM | disk | FTP | other *** search
/ Internet Magazine 2002 June / INTERNET92.ISO / pc / software / windows / building / visual_dhtml / visualdhtmlwin2000.exe / OCpfThre.___ (.txt) < prev    next >
Encoding:
Java Class File  |  1998-05-28  |  968 b   |  34 lines

  1. class OCpfThread implements Runnable {
  2.    Thread animator;
  3.    OCAgrid parent;
  4.  
  5.    public void start() {
  6.       if (this.animator == null) {
  7.          this.animator = new Thread(this);
  8.          this.animator.start();
  9.       }
  10.  
  11.    }
  12.  
  13.    public void stop() {
  14.       if (this.animator != null) {
  15.          this.animator.stop();
  16.          this.animator = null;
  17.       }
  18.  
  19.    }
  20.  
  21.    public void run() {
  22.       while(true) {
  23.          try {
  24.             Thread.sleep(100L);
  25.          } catch (InterruptedException var3) {
  26.          }
  27.       }
  28.    }
  29.  
  30.    OCpfThread(OCAgrid p) {
  31.       this.parent = p;
  32.    }
  33. }
  34.