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

  1. package netscape.applet;
  2.  
  3. class DerivedAppletFrame$StopAppletEvent extends DerivedAppletFrame.AppletEvent {
  4.    // $FF: synthetic field
  5.    private final DerivedAppletFrame this$DerivedAppletFrame;
  6.  
  7.    public void dispatch() {
  8.       Object var1 = this.this$DerivedAppletFrame.m_statusLock;
  9.       synchronized(var1){}
  10.  
  11.       try {
  12.          switch (this.this$DerivedAppletFrame.status) {
  13.             case 1:
  14.             case 2:
  15.             case 4:
  16.             case 6:
  17.                ((DerivedAppletFrame.AppletEvent)this).redispatchWhen(5);
  18.                return;
  19.             case 3:
  20.                return;
  21.             case 5:
  22.                this.this$DerivedAppletFrame.status = 6;
  23.                break;
  24.             default:
  25.                this.this$DerivedAppletFrame.wrongState("can't stop", this.this$DerivedAppletFrame.statusToString(this.this$DerivedAppletFrame.status));
  26.                return;
  27.          }
  28.       } catch (Throwable var32) {
  29.          throw var32;
  30.       }
  31.  
  32.       this.this$DerivedAppletFrame.applet.hide();
  33.       boolean var33 = false;
  34.  
  35.       try {
  36.          SecurityManager.enablePrivilege("UniversalThreadAccess");
  37.          this.this$DerivedAppletFrame.applet.stop();
  38.          var33 = true;
  39.       } finally {
  40.          SecurityManager.revertPrivilege();
  41.          if (!var33) {
  42.             Object var4 = this.this$DerivedAppletFrame.m_statusLock;
  43.             synchronized(var4){}
  44.  
  45.             try {
  46.                this.this$DerivedAppletFrame.status = 0;
  47.                this.notifyAll();
  48.             } catch (Throwable var29) {
  49.                throw var29;
  50.             }
  51.          }
  52.  
  53.       }
  54.  
  55.       Object var2 = this.this$DerivedAppletFrame.m_statusLock;
  56.       synchronized(var2){}
  57.  
  58.       try {
  59.          this.this$DerivedAppletFrame.status = 3;
  60.          this.this$DerivedAppletFrame.timestamp = System.currentTimeMillis();
  61.          this.this$DerivedAppletFrame.rightState("stopped");
  62.          this.this$DerivedAppletFrame.m_statusLock.notifyAll();
  63.       } catch (Throwable var30) {
  64.          throw var30;
  65.       }
  66.  
  67.    }
  68.  
  69.    DerivedAppletFrame$StopAppletEvent(DerivedAppletFrame var1) {
  70.       super(var1);
  71.       this.this$DerivedAppletFrame = var1;
  72.       this.this$DerivedAppletFrame = var1;
  73.    }
  74. }
  75.