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

  1. package netscape.applet;
  2.  
  3. class DerivedAppletFrame$DestroyAppletEvent 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 7:
  16.             case 8:
  17.             case 9:
  18.                return;
  19.             case 3:
  20.                this.this$DerivedAppletFrame.status = 7;
  21.                break;
  22.             case 4:
  23.             case 5:
  24.             case 6:
  25.                ((DerivedAppletFrame.AppletEvent)this).redispatchWhen(3);
  26.                return;
  27.             default:
  28.                this.this$DerivedAppletFrame.wrongState("cannot destroy", this.this$DerivedAppletFrame.statusToString(this.this$DerivedAppletFrame.status));
  29.                return;
  30.          }
  31.       } catch (Throwable var8) {
  32.          throw var8;
  33.       }
  34.  
  35.       SecurityManager.enablePrivilege("UniversalThreadAccess");
  36.       this.this$DerivedAppletFrame.applet.destroy();
  37.       SecurityManager.revertPrivilege();
  38.       this.this$DerivedAppletFrame.hide();
  39.       var1 = this.this$DerivedAppletFrame.m_statusLock;
  40.       synchronized(var1){}
  41.  
  42.       try {
  43.          this.this$DerivedAppletFrame.status = 8;
  44.          this.this$DerivedAppletFrame.rightState("destroyed");
  45.          this.this$DerivedAppletFrame.m_statusLock.notifyAll();
  46.       } catch (Throwable var7) {
  47.          throw var7;
  48.       }
  49.  
  50.    }
  51.  
  52.    DerivedAppletFrame$DestroyAppletEvent(DerivedAppletFrame var1) {
  53.       super(var1);
  54.       this.this$DerivedAppletFrame = var1;
  55.       this.this$DerivedAppletFrame = var1;
  56.    }
  57. }
  58.