1 Clazz.declarePackage ("swingjs");
2 Clazz.load (["java.lang.Thread", "swingjs.api.JSFunction"], "swingjs.JSThread", null, function () {
3 c$ = Clazz.decorateAsClass (function () {
5 Clazz.instantialize (this, arguments);
6 }, swingjs, "JSThread", Thread, swingjs.api.JSFunction);
7 Clazz.makeConstructor (c$,
8 function (group, name) {
9 Clazz.superConstructor (this, swingjs.JSThread, [group, name]);
12 }}, "ThreadGroup,~S");
13 Clazz.overrideMethod (c$, "run",
17 Clazz.defineMethod (c$, "start",
20 swingjs.JSToolkit.setTimeout(this, 1, 0);
22 Clazz.defineMethod (c$, "sleepAndReturn",
23 function (delay, state) {
28 var r = ((Clazz.isClassDefined ("swingjs.JSThread$1") ? 0 : swingjs.JSThread.$JSThread$1$ ()), Clazz.innerTypeInstance (swingjs.JSThread$1, this, Clazz.cloneFinals ("me", me, "state", state)));
31 function() {java.awt.Toolkit.getDefaultToolkit().getSystemEventQueue().postEvent(new java.awt.event.InvocationEvent(me, r))},
36 c$.$JSThread$1$ = function () {
38 c$ = Clazz.declareAnonymous (swingjs, "JSThread$1", null, Runnable);
39 Clazz.overrideMethod (c$, "run",
41 this.f$.me.run1 (this.f$.state);
45 Clazz.defineStatics (c$,