X-Git-Url: http://source.jalview.org/gitweb/?p=jalviewjs.git;a=blobdiff_plain;f=site%2Fswingjs%2Fj2s%2Fjavax%2Fswing%2FActionPropertyChangeListener.js;fp=site%2Fswingjs%2Fj2s%2Fjavax%2Fswing%2FActionPropertyChangeListener.js;h=d758a88d087994c7c47ad5a842a92314031c119b;hp=ed8d9fc9593beaf7ece80144ab8b6ba4ac750b40;hb=b9b7a352eee79b7764c3b09c9d19663075061d8c;hpb=7301a2415adab88038b291fc54caeeb3a5a47a44 diff --git a/site/swingjs/j2s/javax/swing/ActionPropertyChangeListener.js b/site/swingjs/j2s/javax/swing/ActionPropertyChangeListener.js index ed8d9fc..d758a88 100644 --- a/site/swingjs/j2s/javax/swing/ActionPropertyChangeListener.js +++ b/site/swingjs/j2s/javax/swing/ActionPropertyChangeListener.js @@ -1,31 +1,31 @@ -Clazz.declarePackage ("javax.swing"); -Clazz.load (["java.beans.PropertyChangeListener"], "javax.swing.ActionPropertyChangeListener", null, function () { -c$ = Clazz.decorateAsClass (function () { -this.action = null; -Clazz.instantialize (this, arguments); -}, javax.swing, "ActionPropertyChangeListener", null, java.beans.PropertyChangeListener); -Clazz.makeConstructor (c$, -function (c, a) { -this.setTarget (c); -this.action = a; -}, "~O,javax.swing.Action"); -Clazz.overrideMethod (c$, "propertyChange", -function (e) { -var target = this.getTarget (); -if (target == null) { -this.getAction ().removePropertyChangeListener (this); -} else { -this.actionPropertyChanged (target, this.getAction (), e); -}}, "java.beans.PropertyChangeEvent"); -Clazz.defineMethod (c$, "setTarget", - function (c) { -}, "~O"); -Clazz.defineMethod (c$, "getTarget", -function () { -return null; -}); -Clazz.defineMethod (c$, "getAction", -function () { -return this.action; -}); -}); +Clazz.declarePackage ("javax.swing"); +Clazz.load (["java.beans.PropertyChangeListener"], "javax.swing.ActionPropertyChangeListener", null, function () { +c$ = Clazz.decorateAsClass (function () { +this.action = null; +Clazz.instantialize (this, arguments); +}, javax.swing, "ActionPropertyChangeListener", null, java.beans.PropertyChangeListener); +Clazz.makeConstructor (c$, +function (c, a) { +this.setTarget (c); +this.action = a; +}, "~O,javax.swing.Action"); +Clazz.overrideMethod (c$, "propertyChange", +function (e) { +var target = this.getTarget (); +if (target == null) { +this.getAction ().removePropertyChangeListener (this); +} else { +this.actionPropertyChanged (target, this.getAction (), e); +}}, "java.beans.PropertyChangeEvent"); +Clazz.defineMethod (c$, "setTarget", + function (c) { +}, "~O"); +Clazz.defineMethod (c$, "getTarget", +function () { +return null; +}); +Clazz.defineMethod (c$, "getAction", +function () { +return this.action; +}); +});