X-Git-Url: http://source.jalview.org/gitweb/?p=jalviewjs.git;a=blobdiff_plain;f=site%2Fswingjs%2Fj2s%2Fjssun%2Fswing%2FUIAction.js;fp=site%2Fswingjs%2Fj2s%2Fjssun%2Fswing%2FUIAction.js;h=4c92aff164054f85327ad57017d969ff121c5a98;hp=79ef000ca27553ee64019601652de66d340f248e;hb=b9b7a352eee79b7764c3b09c9d19663075061d8c;hpb=7301a2415adab88038b291fc54caeeb3a5a47a44 diff --git a/site/swingjs/j2s/jssun/swing/UIAction.js b/site/swingjs/j2s/jssun/swing/UIAction.js index 79ef000..4c92aff 100644 --- a/site/swingjs/j2s/jssun/swing/UIAction.js +++ b/site/swingjs/j2s/jssun/swing/UIAction.js @@ -1,41 +1,41 @@ -Clazz.declarePackage ("jssun.swing"); -Clazz.load (["javax.swing.Action"], "jssun.swing.UIAction", null, function () { -c$ = Clazz.decorateAsClass (function () { -this.name = null; -Clazz.instantialize (this, arguments); -}, jssun.swing, "UIAction", null, javax.swing.Action); -Clazz.makeConstructor (c$, -function (name) { -this.name = name; -}, "~S"); -Clazz.defineMethod (c$, "getName", -function () { -return this.name; -}); -Clazz.overrideMethod (c$, "getValue", -function (key) { -if (key === "Name") { -return this.name; -}return null; -}, "~S"); -Clazz.overrideMethod (c$, "putValue", -function (key, value) { -}, "~S,~O"); -Clazz.overrideMethod (c$, "setEnabled", -function (b) { -}, "~B"); -Clazz.defineMethod (c$, "isEnabled", -function () { -return this.isEnabled (null); -}); -Clazz.defineMethod (c$, "isEnabled", -function (sender) { -return true; -}, "~O"); -Clazz.overrideMethod (c$, "addPropertyChangeListener", -function (listener) { -}, "java.beans.PropertyChangeListener"); -Clazz.overrideMethod (c$, "removePropertyChangeListener", -function (listener) { -}, "java.beans.PropertyChangeListener"); -}); +Clazz.declarePackage ("jssun.swing"); +Clazz.load (["javax.swing.Action"], "jssun.swing.UIAction", null, function () { +c$ = Clazz.decorateAsClass (function () { +this.name = null; +Clazz.instantialize (this, arguments); +}, jssun.swing, "UIAction", null, javax.swing.Action); +Clazz.makeConstructor (c$, +function (name) { +this.name = name; +}, "~S"); +Clazz.defineMethod (c$, "getName", +function () { +return this.name; +}); +Clazz.overrideMethod (c$, "getValue", +function (key) { +if (key === "Name") { +return this.name; +}return null; +}, "~S"); +Clazz.overrideMethod (c$, "putValue", +function (key, value) { +}, "~S,~O"); +Clazz.overrideMethod (c$, "setEnabled", +function (b) { +}, "~B"); +Clazz.defineMethod (c$, "isEnabled", +function () { +return this.isEnabled (null); +}); +Clazz.defineMethod (c$, "isEnabled", +function (sender) { +return true; +}, "~O"); +Clazz.overrideMethod (c$, "addPropertyChangeListener", +function (listener) { +}, "java.beans.PropertyChangeListener"); +Clazz.overrideMethod (c$, "removePropertyChangeListener", +function (listener) { +}, "java.beans.PropertyChangeListener"); +});