Merge branch 'master' of https://source.jalview.org/git/jalviewjs.git
[jalviewjs.git] / site / j2s / javax / swing / JButton.js
index b91d233..e93cb5f 100644 (file)
@@ -1,66 +1,66 @@
-Clazz.declarePackage ("javax.swing");\r
-Clazz.load (["javax.swing.AbstractButton"], "javax.swing.JButton", ["javax.swing.DefaultButtonModel", "$.SwingUtilities", "$.UIManager"], function () {\r
-c$ = Clazz.declareType (javax.swing, "JButton", javax.swing.AbstractButton);\r
-Clazz.makeConstructor (c$, \r
-function () {\r
-this.construct (null, null);\r
-});\r
-Clazz.makeConstructor (c$, \r
-function (icon) {\r
-this.construct (null, icon);\r
-}, "javax.swing.Icon");\r
-Clazz.makeConstructor (c$, \r
-function (text) {\r
-this.construct (text, null);\r
-}, "~S");\r
-Clazz.makeConstructor (c$, \r
-function (a) {\r
-this.construct ();\r
-this.setAction (a);\r
-}, "javax.swing.Action");\r
-Clazz.makeConstructor (c$, \r
-function (text, icon) {\r
-Clazz.superConstructor (this, javax.swing.JButton, []);\r
-this.setModel ( new javax.swing.DefaultButtonModel ());\r
-this.init (text, icon);\r
-}, "~S,javax.swing.Icon");\r
-Clazz.overrideMethod (c$, "updateUI", \r
-function () {\r
-this.setUI (javax.swing.UIManager.getUI (this));\r
-});\r
-Clazz.overrideMethod (c$, "getUIClassID", \r
-function () {\r
-return "ButtonUI";\r
-});\r
-Clazz.defineMethod (c$, "isDefaultButton", \r
-function () {\r
-var root = javax.swing.SwingUtilities.getRootPane (this);\r
-if (root != null) {\r
-return root.getDefaultButton () === this;\r
-}return false;\r
-});\r
-Clazz.defineMethod (c$, "isDefaultCapable", \r
-function () {\r
-return this.defaultCapable;\r
-});\r
-Clazz.defineMethod (c$, "setDefaultCapable", \r
-function (defaultCapable) {\r
-var oldDefaultCapable = this.defaultCapable;\r
-this.defaultCapable = defaultCapable;\r
-this.firePropertyChangeBool ("defaultCapable", oldDefaultCapable, defaultCapable);\r
-}, "~B");\r
-Clazz.defineMethod (c$, "removeNotify", \r
-function () {\r
-var root = javax.swing.SwingUtilities.getRootPane (this);\r
-if (root != null && root.getDefaultButton () === this) {\r
-root.setDefaultButton (null);\r
-}Clazz.superCall (this, javax.swing.JButton, "removeNotify", []);\r
-});\r
-Clazz.defineMethod (c$, "paramString", \r
-function () {\r
-var defaultCapableString = (this.defaultCapable ? "true" : "false");\r
-return Clazz.superCall (this, javax.swing.JButton, "paramString", []) + ",defaultCapable=" + defaultCapableString;\r
-});\r
-Clazz.defineStatics (c$,\r
-"$uiClassID", "ButtonUI");\r
-});\r
+Clazz.declarePackage ("javax.swing");
+Clazz.load (["javax.swing.AbstractButton"], "javax.swing.JButton", ["javax.swing.DefaultButtonModel", "$.SwingUtilities", "$.UIManager"], function () {
+c$ = Clazz.declareType (javax.swing, "JButton", javax.swing.AbstractButton);
+Clazz.makeConstructor (c$, 
+function () {
+this.construct (null, null);
+});
+Clazz.makeConstructor (c$, 
+function (icon) {
+this.construct (null, icon);
+}, "javax.swing.Icon");
+Clazz.makeConstructor (c$, 
+function (text) {
+this.construct (text, null);
+}, "~S");
+Clazz.makeConstructor (c$, 
+function (a) {
+this.construct ();
+this.setAction (a);
+}, "javax.swing.Action");
+Clazz.makeConstructor (c$, 
+function (text, icon) {
+Clazz.superConstructor (this, javax.swing.JButton, []);
+this.setModel ( new javax.swing.DefaultButtonModel ());
+this.init (text, icon);
+}, "~S,javax.swing.Icon");
+Clazz.overrideMethod (c$, "updateUI", 
+function () {
+this.setUI (javax.swing.UIManager.getUI (this));
+});
+Clazz.overrideMethod (c$, "getUIClassID", 
+function () {
+return "ButtonUI";
+});
+Clazz.defineMethod (c$, "isDefaultButton", 
+function () {
+var root = javax.swing.SwingUtilities.getRootPane (this);
+if (root != null) {
+return root.getDefaultButton () === this;
+}return false;
+});
+Clazz.defineMethod (c$, "isDefaultCapable", 
+function () {
+return this.defaultCapable;
+});
+Clazz.defineMethod (c$, "setDefaultCapable", 
+function (defaultCapable) {
+var oldDefaultCapable = this.defaultCapable;
+this.defaultCapable = defaultCapable;
+this.firePropertyChangeBool ("defaultCapable", oldDefaultCapable, defaultCapable);
+}, "~B");
+Clazz.defineMethod (c$, "removeNotify", 
+function () {
+var root = javax.swing.SwingUtilities.getRootPane (this);
+if (root != null && root.getDefaultButton () === this) {
+root.setDefaultButton (null);
+}Clazz.superCall (this, javax.swing.JButton, "removeNotify", []);
+});
+Clazz.defineMethod (c$, "paramString", 
+function () {
+var defaultCapableString = (this.defaultCapable ? "true" : "false");
+return Clazz.superCall (this, javax.swing.JButton, "paramString", []) + ",defaultCapable=" + defaultCapableString;
+});
+Clazz.defineStatics (c$,
+"$uiClassID", "ButtonUI");
+});