X-Git-Url: http://source.jalview.org/gitweb/?p=jalviewjs.git;a=blobdiff_plain;f=site%2Fj2s%2Fswingjs%2FJSAppletThread.js;fp=site%2Fj2s%2Fswingjs%2FJSAppletThread.js;h=75b23fe895be9bd6d2f2f31b567554f997368886;hp=ceff684004e72f8e4db28398d065100a6f7868f0;hb=b9b7a352eee79b7764c3b09c9d19663075061d8c;hpb=7301a2415adab88038b291fc54caeeb3a5a47a44 diff --git a/site/j2s/swingjs/JSAppletThread.js b/site/j2s/swingjs/JSAppletThread.js index ceff684..75b23fe 100644 --- a/site/j2s/swingjs/JSAppletThread.js +++ b/site/j2s/swingjs/JSAppletThread.js @@ -1,31 +1,31 @@ -Clazz.declarePackage ("swingjs"); -Clazz.load (["swingjs.JSThread"], "swingjs.JSAppletThread", ["javax.swing.SwingUtilities"], function () { -c$ = Clazz.decorateAsClass (function () { -this.ap = null; -Clazz.instantialize (this, arguments); -}, swingjs, "JSAppletThread", swingjs.JSThread); -Clazz.makeConstructor (c$, -function (ap, group, name) { -Clazz.superConstructor (this, swingjs.JSAppletThread, [group, name]); -this.ap = ap; -}, "swingjs.JSAppletPanel,ThreadGroup,~S"); -Clazz.overrideMethod (c$, "run1", -function (mode) { -mode = this.ap.run1 (mode); -if (mode != 2) this.dispatchAndReturn (null, mode); -}, "~N"); -Clazz.defineMethod (c$, "dispatchAndReturn", -function (r, mode) { -var m = mode; -javax.swing.SwingUtilities.invokeLater (((Clazz.isClassDefined ("swingjs.JSAppletThread$1") ? 0 : swingjs.JSAppletThread.$JSAppletThread$1$ ()), Clazz.innerTypeInstance (swingjs.JSAppletThread$1, this, Clazz.cloneFinals ("m", m)))); -}, "Runnable,~N"); -c$.$JSAppletThread$1$ = function () { -Clazz.pu$h(self.c$); -c$ = Clazz.declareAnonymous (swingjs, "JSAppletThread$1", null, Runnable); -Clazz.overrideMethod (c$, "run", -function () { -this.b$["swingjs.JSAppletThread"].run1 (this.f$.m); -}); -c$ = Clazz.p0p (); -}; -}); +Clazz.declarePackage ("swingjs"); +Clazz.load (["swingjs.JSThread"], "swingjs.JSAppletThread", ["javax.swing.SwingUtilities"], function () { +c$ = Clazz.decorateAsClass (function () { +this.ap = null; +Clazz.instantialize (this, arguments); +}, swingjs, "JSAppletThread", swingjs.JSThread); +Clazz.makeConstructor (c$, +function (ap, group, name) { +Clazz.superConstructor (this, swingjs.JSAppletThread, [group, name]); +this.ap = ap; +}, "swingjs.JSAppletPanel,ThreadGroup,~S"); +Clazz.overrideMethod (c$, "run1", +function (mode) { +mode = this.ap.run1 (mode); +if (mode != 2) this.dispatchAndReturn (null, mode); +}, "~N"); +Clazz.defineMethod (c$, "dispatchAndReturn", +function (r, mode) { +var m = mode; +javax.swing.SwingUtilities.invokeLater (((Clazz.isClassDefined ("swingjs.JSAppletThread$1") ? 0 : swingjs.JSAppletThread.$JSAppletThread$1$ ()), Clazz.innerTypeInstance (swingjs.JSAppletThread$1, this, Clazz.cloneFinals ("m", m)))); +}, "Runnable,~N"); +c$.$JSAppletThread$1$ = function () { +Clazz.pu$h(self.c$); +c$ = Clazz.declareAnonymous (swingjs, "JSAppletThread$1", null, Runnable); +Clazz.overrideMethod (c$, "run", +function () { +this.b$["swingjs.JSAppletThread"].run1 (this.f$.m); +}); +c$ = Clazz.p0p (); +}; +});