home *** CD-ROM | disk | FTP | other *** search
/ Chip 2001 June / CHIPHEFT062001.ISO / browser / nc32lyc / comm.z / java40.jar / netscape / applet / DerivedAppletFrame$AppletEvent$RedispatcherThread.class (.txt) < prev    next >
Encoding:
Java Class File  |  2000-08-15  |  2.4 KB  |  45 lines

  1. package netscape.applet;
  2.  
  3. class DerivedAppletFrame$AppletEvent$RedispatcherThread extends Thread {
  4.    // $FF: synthetic field
  5.    private final DerivedAppletFrame.AppletEvent this$AppletEvent;
  6.    int m_correctState;
  7.    DerivedAppletFrame.AppletEvent m_event;
  8.  
  9.    DerivedAppletFrame$AppletEvent$RedispatcherThread(DerivedAppletFrame.AppletEvent var1, int var2, DerivedAppletFrame.AppletEvent var3) {
  10.       super("Event-Redispatcher (" + var3 + ")");
  11.       this.this$AppletEvent = var1;
  12.       this.this$AppletEvent = var1;
  13.       this.m_event = var3;
  14.       this.m_correctState = var2;
  15.    }
  16.  
  17.    public void run() {
  18.       try {
  19.          Object var1 = this.this$AppletEvent.this$DerivedAppletFrame.m_statusLock;
  20.          synchronized(var1){}
  21.  
  22.          try {
  23.             while(this.this$AppletEvent.this$DerivedAppletFrame.status != this.m_correctState) {
  24.                if (this.this$AppletEvent.this$DerivedAppletFrame.status == 0 || this.this$AppletEvent.this$DerivedAppletFrame.status == 9) {
  25.                   return;
  26.                }
  27.  
  28.                this.this$AppletEvent.this$DerivedAppletFrame.m_statusLock.wait();
  29.             }
  30.          } catch (Throwable var5) {
  31.             throw var5;
  32.          }
  33.       } catch (InterruptedException var6) {
  34.          this.this$AppletEvent.this$DerivedAppletFrame.showAppletException(var6, "interrupted while waiting to re-dispatch " + this.m_event);
  35.          return;
  36.       }
  37.  
  38.       this.this$AppletEvent.this$DerivedAppletFrame.eq.postEvent(this.m_event);
  39.    }
  40.  
  41.    public String toString() {
  42.       return "RedispatcherThread[" + this.m_event + "," + this.this$AppletEvent.this$DerivedAppletFrame.statusToString(this.m_correctState) + "]";
  43.    }
  44. }
  45.