Merge branch 'master' of https://source.jalview.org/git/jalviewjs.git
[jalviewjs.git] / site / swingjs / j2s / javax / swing / JCheckBox.js
index 9bb2262..f234e64 100644 (file)
@@ -1,69 +1,69 @@
-Clazz.declarePackage ("javax.swing");\r
-Clazz.load (["javax.swing.JToggleButton"], "javax.swing.JCheckBox", ["java.lang.Boolean", "javax.swing.UIManager"], function () {\r
-c$ = Clazz.decorateAsClass (function () {\r
-this.flat = false;\r
-Clazz.instantialize (this, arguments);\r
-}, javax.swing, "JCheckBox", javax.swing.JToggleButton);\r
-Clazz.makeConstructor (c$, \r
-function () {\r
-this.construct (null, null, false);\r
-});\r
-Clazz.makeConstructor (c$, \r
-function (icon) {\r
-this.construct (null, icon, false);\r
-}, "javax.swing.Icon");\r
-Clazz.makeConstructor (c$, \r
-function (icon, selected) {\r
-this.construct (null, icon, selected);\r
-}, "javax.swing.Icon,~B");\r
-Clazz.makeConstructor (c$, \r
-function (text) {\r
-this.construct (text, null, false);\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, selected) {\r
-this.construct (text, null, selected);\r
-}, "~S,~B");\r
-Clazz.makeConstructor (c$, \r
-function (text, icon) {\r
-this.construct (text, icon, false);\r
-}, "~S,javax.swing.Icon");\r
-Clazz.makeConstructor (c$, \r
-function (text, icon, selected) {\r
-Clazz.superConstructor (this, javax.swing.JCheckBox, [text, icon, selected]);\r
-this.setUIProperty ("borderPainted", Boolean.FALSE);\r
-this.setHorizontalAlignment (10);\r
-}, "~S,javax.swing.Icon,~B");\r
-Clazz.defineMethod (c$, "setBorderPaintedFlat", \r
-function (b) {\r
-var oldValue = this.flat;\r
-this.flat = b;\r
-this.firePropertyChangeBool ("borderPaintedFlat", oldValue, this.flat);\r
-if (b != oldValue) {\r
-this.revalidate ();\r
-this.repaint ();\r
-}}, "~B");\r
-Clazz.defineMethod (c$, "isBorderPaintedFlat", \r
-function () {\r
-return this.flat;\r
-});\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 "CheckBoxUI";\r
-});\r
-Clazz.overrideMethod (c$, "setIconFromAction", \r
-function (a) {\r
-}, "javax.swing.Action");\r
-Clazz.defineStatics (c$,\r
-"BORDER_PAINTED_FLAT_CHANGED_PROPERTY", "borderPaintedFlat",\r
-"$$uiClassID", "CheckBoxUI");\r
-});\r
+Clazz.declarePackage ("javax.swing");
+Clazz.load (["javax.swing.JToggleButton"], "javax.swing.JCheckBox", ["java.lang.Boolean", "javax.swing.UIManager"], function () {
+c$ = Clazz.decorateAsClass (function () {
+this.flat = false;
+Clazz.instantialize (this, arguments);
+}, javax.swing, "JCheckBox", javax.swing.JToggleButton);
+Clazz.makeConstructor (c$, 
+function () {
+this.construct (null, null, false);
+});
+Clazz.makeConstructor (c$, 
+function (icon) {
+this.construct (null, icon, false);
+}, "javax.swing.Icon");
+Clazz.makeConstructor (c$, 
+function (icon, selected) {
+this.construct (null, icon, selected);
+}, "javax.swing.Icon,~B");
+Clazz.makeConstructor (c$, 
+function (text) {
+this.construct (text, null, false);
+}, "~S");
+Clazz.makeConstructor (c$, 
+function (a) {
+this.construct ();
+this.setAction (a);
+}, "javax.swing.Action");
+Clazz.makeConstructor (c$, 
+function (text, selected) {
+this.construct (text, null, selected);
+}, "~S,~B");
+Clazz.makeConstructor (c$, 
+function (text, icon) {
+this.construct (text, icon, false);
+}, "~S,javax.swing.Icon");
+Clazz.makeConstructor (c$, 
+function (text, icon, selected) {
+Clazz.superConstructor (this, javax.swing.JCheckBox, [text, icon, selected]);
+this.setUIProperty ("borderPainted", Boolean.FALSE);
+this.setHorizontalAlignment (10);
+}, "~S,javax.swing.Icon,~B");
+Clazz.defineMethod (c$, "setBorderPaintedFlat", 
+function (b) {
+var oldValue = this.flat;
+this.flat = b;
+this.firePropertyChangeBool ("borderPaintedFlat", oldValue, this.flat);
+if (b != oldValue) {
+this.revalidate ();
+this.repaint ();
+}}, "~B");
+Clazz.defineMethod (c$, "isBorderPaintedFlat", 
+function () {
+return this.flat;
+});
+Clazz.overrideMethod (c$, "updateUI", 
+function () {
+this.setUI (javax.swing.UIManager.getUI (this));
+});
+Clazz.overrideMethod (c$, "getUIClassID", 
+function () {
+return "CheckBoxUI";
+});
+Clazz.overrideMethod (c$, "setIconFromAction", 
+function (a) {
+}, "javax.swing.Action");
+Clazz.defineStatics (c$,
+"BORDER_PAINTED_FLAT_CHANGED_PROPERTY", "borderPaintedFlat",
+"$$uiClassID", "CheckBoxUI");
+});