Merge branch 'master' of https://source.jalview.org/git/jalviewjs.git
[jalviewjs.git] / site / j2s / javax / swing / JCheckBoxMenuItem.js
index bba5a23..42c0883 100644 (file)
@@ -1,61 +1,61 @@
-Clazz.declarePackage ("javax.swing");\r
-Clazz.load (["javax.swing.JMenuItem", "$.SwingConstants"], "javax.swing.JCheckBoxMenuItem", ["javax.swing.JToggleButton"], function () {\r
-c$ = Clazz.declareType (javax.swing, "JCheckBoxMenuItem", javax.swing.JMenuItem, javax.swing.SwingConstants);\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 (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, icon) {\r
-this.construct (text, icon, false);\r
-}, "~S,javax.swing.Icon");\r
-Clazz.makeConstructor (c$, \r
-function (text, b) {\r
-this.construct (text, null, b);\r
-}, "~S,~B");\r
-Clazz.makeConstructor (c$, \r
-function (text, icon, b) {\r
-Clazz.superConstructor (this, javax.swing.JCheckBoxMenuItem, [text, icon]);\r
-this.setModel ( new javax.swing.JToggleButton.ToggleButtonModel ());\r
-this.setSelected (b);\r
-this.setFocusable (false);\r
-}, "~S,javax.swing.Icon,~B");\r
-Clazz.overrideMethod (c$, "getUIClassID", \r
-function () {\r
-return "CheckBoxMenuItemUI";\r
-});\r
-Clazz.defineMethod (c$, "getState", \r
-function () {\r
-return this.isSelected ();\r
-});\r
-Clazz.defineMethod (c$, "setState", \r
-function (b) {\r
-this.setSelected (b);\r
-}, "~B");\r
-Clazz.overrideMethod (c$, "getSelectedObjects", \r
-function () {\r
-if (this.isSelected () == false) return null;\r
-var selectedObjects =  new Array (1);\r
-selectedObjects[0] = this.getText ();\r
-return selectedObjects;\r
-});\r
-Clazz.overrideMethod (c$, "shouldUpdateSelectedStateFromAction", \r
-function () {\r
-return true;\r
-});\r
-Clazz.defineStatics (c$,\r
-"$$uiClassID", "CheckBoxMenuItemUI");\r
-});\r
+Clazz.declarePackage ("javax.swing");
+Clazz.load (["javax.swing.JMenuItem", "$.SwingConstants"], "javax.swing.JCheckBoxMenuItem", ["javax.swing.JToggleButton"], function () {
+c$ = Clazz.declareType (javax.swing, "JCheckBoxMenuItem", javax.swing.JMenuItem, javax.swing.SwingConstants);
+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 (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, icon) {
+this.construct (text, icon, false);
+}, "~S,javax.swing.Icon");
+Clazz.makeConstructor (c$, 
+function (text, b) {
+this.construct (text, null, b);
+}, "~S,~B");
+Clazz.makeConstructor (c$, 
+function (text, icon, b) {
+Clazz.superConstructor (this, javax.swing.JCheckBoxMenuItem, [text, icon]);
+this.setModel ( new javax.swing.JToggleButton.ToggleButtonModel ());
+this.setSelected (b);
+this.setFocusable (false);
+}, "~S,javax.swing.Icon,~B");
+Clazz.overrideMethod (c$, "getUIClassID", 
+function () {
+return "CheckBoxMenuItemUI";
+});
+Clazz.defineMethod (c$, "getState", 
+function () {
+return this.isSelected ();
+});
+Clazz.defineMethod (c$, "setState", 
+function (b) {
+this.setSelected (b);
+}, "~B");
+Clazz.overrideMethod (c$, "getSelectedObjects", 
+function () {
+if (this.isSelected () == false) return null;
+var selectedObjects =  new Array (1);
+selectedObjects[0] = this.getText ();
+return selectedObjects;
+});
+Clazz.overrideMethod (c$, "shouldUpdateSelectedStateFromAction", 
+function () {
+return true;
+});
+Clazz.defineStatics (c$,
+"$$uiClassID", "CheckBoxMenuItemUI");
+});