X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=site%2Fj2s%2Fjssun%2Fapplet%2FAppletEventMulticaster.js;h=b54b0f14026f65a4a5bf440ef64ddc5f60616a61;hb=b9b7a352eee79b7764c3b09c9d19663075061d8c;hp=b55fc4b61b7e220bcdd9cb5dfba7e72b4ef06c35;hpb=7301a2415adab88038b291fc54caeeb3a5a47a44;p=jalviewjs.git diff --git a/site/j2s/jssun/applet/AppletEventMulticaster.js b/site/j2s/jssun/applet/AppletEventMulticaster.js index b55fc4b..b54b0f1 100644 --- a/site/j2s/jssun/applet/AppletEventMulticaster.js +++ b/site/j2s/jssun/applet/AppletEventMulticaster.js @@ -1,51 +1,51 @@ -Clazz.declarePackage ("jssun.applet"); -Clazz.load (["jssun.applet.AppletListener"], "jssun.applet.AppletEventMulticaster", null, function () { -c$ = Clazz.decorateAsClass (function () { -this.a = null; -this.b = null; -Clazz.instantialize (this, arguments); -}, jssun.applet, "AppletEventMulticaster", null, jssun.applet.AppletListener); -Clazz.makeConstructor (c$, -function (a, b) { -this.a = a; -this.b = b; -}, "jssun.applet.AppletListener,jssun.applet.AppletListener"); -Clazz.defineMethod (c$, "appletStateChanged", -function (e) { -this.a.appletStateChanged (e); -this.b.appletStateChanged (e); -}, "jssun.applet.AppletEvent"); -c$.add = Clazz.defineMethod (c$, "add", -function (a, b) { -return jssun.applet.AppletEventMulticaster.addInternal (a, b); -}, "jssun.applet.AppletListener,jssun.applet.AppletListener"); -c$.remove = Clazz.defineMethod (c$, "remove", -function (l, oldl) { -return jssun.applet.AppletEventMulticaster.removeInternal (l, oldl); -}, "jssun.applet.AppletListener,jssun.applet.AppletListener"); -c$.addInternal = Clazz.defineMethod (c$, "addInternal", - function (a, b) { -if (a == null) return b; -if (b == null) return a; -return new jssun.applet.AppletEventMulticaster (a, b); -}, "jssun.applet.AppletListener,jssun.applet.AppletListener"); -Clazz.defineMethod (c$, "remove", -function (oldl) { -if (oldl === this.a) return this.b; -if (oldl === this.b) return this.a; -var a2 = jssun.applet.AppletEventMulticaster.removeInternal (this.a, oldl); -var b2 = jssun.applet.AppletEventMulticaster.removeInternal (this.b, oldl); -if (a2 === this.a && b2 === this.b) { -return this; -}return jssun.applet.AppletEventMulticaster.addInternal (a2, b2); -}, "jssun.applet.AppletListener"); -c$.removeInternal = Clazz.defineMethod (c$, "removeInternal", - function (l, oldl) { -if (l === oldl || l == null) { -return null; -} else if (Clazz.instanceOf (l, jssun.applet.AppletEventMulticaster)) { -return (l).remove (oldl); -} else { -return l; -}}, "jssun.applet.AppletListener,jssun.applet.AppletListener"); -}); +Clazz.declarePackage ("jssun.applet"); +Clazz.load (["jssun.applet.AppletListener"], "jssun.applet.AppletEventMulticaster", null, function () { +c$ = Clazz.decorateAsClass (function () { +this.a = null; +this.b = null; +Clazz.instantialize (this, arguments); +}, jssun.applet, "AppletEventMulticaster", null, jssun.applet.AppletListener); +Clazz.makeConstructor (c$, +function (a, b) { +this.a = a; +this.b = b; +}, "jssun.applet.AppletListener,jssun.applet.AppletListener"); +Clazz.defineMethod (c$, "appletStateChanged", +function (e) { +this.a.appletStateChanged (e); +this.b.appletStateChanged (e); +}, "jssun.applet.AppletEvent"); +c$.add = Clazz.defineMethod (c$, "add", +function (a, b) { +return jssun.applet.AppletEventMulticaster.addInternal (a, b); +}, "jssun.applet.AppletListener,jssun.applet.AppletListener"); +c$.remove = Clazz.defineMethod (c$, "remove", +function (l, oldl) { +return jssun.applet.AppletEventMulticaster.removeInternal (l, oldl); +}, "jssun.applet.AppletListener,jssun.applet.AppletListener"); +c$.addInternal = Clazz.defineMethod (c$, "addInternal", + function (a, b) { +if (a == null) return b; +if (b == null) return a; +return new jssun.applet.AppletEventMulticaster (a, b); +}, "jssun.applet.AppletListener,jssun.applet.AppletListener"); +Clazz.defineMethod (c$, "remove", +function (oldl) { +if (oldl === this.a) return this.b; +if (oldl === this.b) return this.a; +var a2 = jssun.applet.AppletEventMulticaster.removeInternal (this.a, oldl); +var b2 = jssun.applet.AppletEventMulticaster.removeInternal (this.b, oldl); +if (a2 === this.a && b2 === this.b) { +return this; +}return jssun.applet.AppletEventMulticaster.addInternal (a2, b2); +}, "jssun.applet.AppletListener"); +c$.removeInternal = Clazz.defineMethod (c$, "removeInternal", + function (l, oldl) { +if (l === oldl || l == null) { +return null; +} else if (Clazz.instanceOf (l, jssun.applet.AppletEventMulticaster)) { +return (l).remove (oldl); +} else { +return l; +}}, "jssun.applet.AppletListener,jssun.applet.AppletListener"); +});