X-Git-Url: http://source.jalview.org/gitweb/?p=jalviewjs.git;a=blobdiff_plain;f=site%2Fj2s%2Fjavax%2Fswing%2FJCheckBoxMenuItem.js;fp=site%2Fj2s%2Fjavax%2Fswing%2FJCheckBoxMenuItem.js;h=42c0883379ebbe83d2b4e6c02865294d1a89b3ad;hp=bba5a23d48b64babc9ce4a3501991c99ccf0302a;hb=b9b7a352eee79b7764c3b09c9d19663075061d8c;hpb=7301a2415adab88038b291fc54caeeb3a5a47a44 diff --git a/site/j2s/javax/swing/JCheckBoxMenuItem.js b/site/j2s/javax/swing/JCheckBoxMenuItem.js index bba5a23..42c0883 100644 --- a/site/j2s/javax/swing/JCheckBoxMenuItem.js +++ b/site/j2s/javax/swing/JCheckBoxMenuItem.js @@ -1,61 +1,61 @@ -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"); -}); +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"); +});