home *** CD-ROM | disk | FTP | other *** search
- package netscape.applet;
-
- class DerivedAppletFrame$StopAppletEvent extends DerivedAppletFrame.AppletEvent {
- // $FF: synthetic field
- private final DerivedAppletFrame this$DerivedAppletFrame;
-
- public void dispatch() {
- Object var1 = this.this$DerivedAppletFrame.m_statusLock;
- synchronized(var1){}
-
- try {
- switch (this.this$DerivedAppletFrame.status) {
- case 1:
- case 2:
- case 4:
- case 6:
- ((DerivedAppletFrame.AppletEvent)this).redispatchWhen(5);
- return;
- case 3:
- return;
- case 5:
- this.this$DerivedAppletFrame.status = 6;
- break;
- default:
- this.this$DerivedAppletFrame.wrongState("can't stop", this.this$DerivedAppletFrame.statusToString(this.this$DerivedAppletFrame.status));
- return;
- }
- } catch (Throwable var32) {
- throw var32;
- }
-
- this.this$DerivedAppletFrame.applet.hide();
- boolean var33 = false;
-
- try {
- SecurityManager.enablePrivilege("UniversalThreadAccess");
- this.this$DerivedAppletFrame.applet.stop();
- var33 = true;
- } finally {
- SecurityManager.revertPrivilege();
- if (!var33) {
- Object var4 = this.this$DerivedAppletFrame.m_statusLock;
- synchronized(var4){}
-
- try {
- this.this$DerivedAppletFrame.status = 0;
- this.notifyAll();
- } catch (Throwable var29) {
- throw var29;
- }
- }
-
- }
-
- Object var2 = this.this$DerivedAppletFrame.m_statusLock;
- synchronized(var2){}
-
- try {
- this.this$DerivedAppletFrame.status = 3;
- this.this$DerivedAppletFrame.timestamp = System.currentTimeMillis();
- this.this$DerivedAppletFrame.rightState("stopped");
- this.this$DerivedAppletFrame.m_statusLock.notifyAll();
- } catch (Throwable var30) {
- throw var30;
- }
-
- }
-
- DerivedAppletFrame$StopAppletEvent(DerivedAppletFrame var1) {
- super(var1);
- this.this$DerivedAppletFrame = var1;
- this.this$DerivedAppletFrame = var1;
- }
- }
-