X-Git-Url: http://source.jalview.org/gitweb/?p=jalviewjs.git;a=blobdiff_plain;f=site%2Fj2s%2Fjavax%2Fswing%2FComponentInputMap.js;fp=site%2Fj2s%2Fjavax%2Fswing%2FComponentInputMap.js;h=fff9305bd48f93c303777ed076870ef905b27d7b;hp=360cb23584bb5c524c8db3f927dc80166a2d723b;hb=b9b7a352eee79b7764c3b09c9d19663075061d8c;hpb=7301a2415adab88038b291fc54caeeb3a5a47a44 diff --git a/site/j2s/javax/swing/ComponentInputMap.js b/site/j2s/javax/swing/ComponentInputMap.js index 360cb23..fff9305 100644 --- a/site/j2s/javax/swing/ComponentInputMap.js +++ b/site/j2s/javax/swing/ComponentInputMap.js @@ -1,46 +1,46 @@ -Clazz.declarePackage ("javax.swing"); -Clazz.load (["javax.swing.InputMap"], "javax.swing.ComponentInputMap", ["java.lang.IllegalArgumentException"], function () { -c$ = Clazz.decorateAsClass (function () { -this.component = null; -Clazz.instantialize (this, arguments); -}, javax.swing, "ComponentInputMap", javax.swing.InputMap); -Clazz.makeConstructor (c$, -function (component) { -Clazz.superConstructor (this, javax.swing.ComponentInputMap, []); -this.component = component; -if (component == null) { -throw new IllegalArgumentException ("ComponentInputMaps must be associated with a non-null JComponent"); -}}, "javax.swing.JComponent"); -Clazz.defineMethod (c$, "setParent", -function (map) { -if (this.getParent () === map) { -return; -}if (map != null && (!(Clazz.instanceOf (map, javax.swing.ComponentInputMap)) || (map).getComponent () !== this.getComponent ())) { -throw new IllegalArgumentException ("ComponentInputMaps must have a parent ComponentInputMap associated with the same component"); -}Clazz.superCall (this, javax.swing.ComponentInputMap, "setParent", [map]); -this.getComponent ().componentInputMapChanged (this); -}, "javax.swing.InputMap"); -Clazz.defineMethod (c$, "getComponent", -function () { -return this.component; -}); -Clazz.defineMethod (c$, "put", -function (keyStroke, actionMapKey) { -Clazz.superCall (this, javax.swing.ComponentInputMap, "put", [keyStroke, actionMapKey]); -if (this.getComponent () != null) { -this.getComponent ().componentInputMapChanged (this); -}}, "javax.swing.KeyStroke,~O"); -Clazz.defineMethod (c$, "remove", -function (key) { -Clazz.superCall (this, javax.swing.ComponentInputMap, "remove", [key]); -if (this.getComponent () != null) { -this.getComponent ().componentInputMapChanged (this); -}}, "javax.swing.KeyStroke"); -Clazz.defineMethod (c$, "clear", -function () { -var oldSize = this.size (); -Clazz.superCall (this, javax.swing.ComponentInputMap, "clear", []); -if (oldSize > 0 && this.getComponent () != null) { -this.getComponent ().componentInputMapChanged (this); -}}); -}); +Clazz.declarePackage ("javax.swing"); +Clazz.load (["javax.swing.InputMap"], "javax.swing.ComponentInputMap", ["java.lang.IllegalArgumentException"], function () { +c$ = Clazz.decorateAsClass (function () { +this.component = null; +Clazz.instantialize (this, arguments); +}, javax.swing, "ComponentInputMap", javax.swing.InputMap); +Clazz.makeConstructor (c$, +function (component) { +Clazz.superConstructor (this, javax.swing.ComponentInputMap, []); +this.component = component; +if (component == null) { +throw new IllegalArgumentException ("ComponentInputMaps must be associated with a non-null JComponent"); +}}, "javax.swing.JComponent"); +Clazz.defineMethod (c$, "setParent", +function (map) { +if (this.getParent () === map) { +return; +}if (map != null && (!(Clazz.instanceOf (map, javax.swing.ComponentInputMap)) || (map).getComponent () !== this.getComponent ())) { +throw new IllegalArgumentException ("ComponentInputMaps must have a parent ComponentInputMap associated with the same component"); +}Clazz.superCall (this, javax.swing.ComponentInputMap, "setParent", [map]); +this.getComponent ().componentInputMapChanged (this); +}, "javax.swing.InputMap"); +Clazz.defineMethod (c$, "getComponent", +function () { +return this.component; +}); +Clazz.defineMethod (c$, "put", +function (keyStroke, actionMapKey) { +Clazz.superCall (this, javax.swing.ComponentInputMap, "put", [keyStroke, actionMapKey]); +if (this.getComponent () != null) { +this.getComponent ().componentInputMapChanged (this); +}}, "javax.swing.KeyStroke,~O"); +Clazz.defineMethod (c$, "remove", +function (key) { +Clazz.superCall (this, javax.swing.ComponentInputMap, "remove", [key]); +if (this.getComponent () != null) { +this.getComponent ().componentInputMapChanged (this); +}}, "javax.swing.KeyStroke"); +Clazz.defineMethod (c$, "clear", +function () { +var oldSize = this.size (); +Clazz.superCall (this, javax.swing.ComponentInputMap, "clear", []); +if (oldSize > 0 && this.getComponent () != null) { +this.getComponent ().componentInputMapChanged (this); +}}); +});