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

  1. package netscape.applet;
  2.  
  3. class DerivedAppletFrame$StartAppletEvent 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(3);
  18.                return;
  19.             case 3:
  20.                this.this$DerivedAppletFrame.status = 4;
  21.                break;
  22.             case 5:
  23.                return;
  24.             default:
  25.                this.this$DerivedAppletFrame.wrongState("can't start", 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.resize(this.this$DerivedAppletFrame.appletSize.width, this.this$DerivedAppletFrame.appletSize.height);
  33.       boolean var33 = false;
  34.  
  35.       try {
  36.          this.this$DerivedAppletFrame.applet.start();
  37.          var33 = true;
  38.       } finally {
  39.          if (!var33) {
  40.             Object var4 = this.this$DerivedAppletFrame.m_statusLock;
  41.             synchronized(var4){}
  42.  
  43.             try {
  44.                this.this$DerivedAppletFrame.status = 0;
  45.                this.this$DerivedAppletFrame.m_statusLock.notifyAll();
  46.             } catch (Throwable var29) {
  47.                throw var29;
  48.             }
  49.          }
  50.  
  51.       }
  52.  
  53.       this.this$DerivedAppletFrame.applet.show();
  54.       this.this$DerivedAppletFrame.validate();
  55.       this.this$DerivedAppletFrame.context.mochaOnLoad(0);
  56.       Object var2 = this.this$DerivedAppletFrame.m_statusLock;
  57.       synchronized(var2){}
  58.  
  59.       try {
  60.          this.this$DerivedAppletFrame.status = 5;
  61.          this.this$DerivedAppletFrame.timestamp = System.currentTimeMillis();
  62.          this.this$DerivedAppletFrame.rightState("running");
  63.          this.this$DerivedAppletFrame.m_statusLock.notifyAll();
  64.       } catch (Throwable var30) {
  65.          throw var30;
  66.       }
  67.  
  68.    }
  69.  
  70.    DerivedAppletFrame$StartAppletEvent(DerivedAppletFrame var1) {
  71.       super(var1);
  72.       this.this$DerivedAppletFrame = var1;
  73.       this.this$DerivedAppletFrame = var1;
  74.    }
  75. }
  76.