1 Clazz.declarePackage ("javax.swing");
2 Clazz.load (["javax.swing.JMenuItem", "$.SwingConstants"], "javax.swing.JCheckBoxMenuItem", ["javax.swing.JToggleButton"], function () {
3 c$ = Clazz.declareType (javax.swing, "JCheckBoxMenuItem", javax.swing.JMenuItem, javax.swing.SwingConstants);
4 Clazz.makeConstructor (c$,
6 this.construct (null, null, false);
8 Clazz.makeConstructor (c$,
10 this.construct (null, icon, false);
11 }, "javax.swing.Icon");
12 Clazz.makeConstructor (c$,
14 this.construct (text, null, false);
16 Clazz.makeConstructor (c$,
20 }, "javax.swing.Action");
21 Clazz.makeConstructor (c$,
22 function (text, icon) {
23 this.construct (text, icon, false);
24 }, "~S,javax.swing.Icon");
25 Clazz.makeConstructor (c$,
27 this.construct (text, null, b);
29 Clazz.makeConstructor (c$,
30 function (text, icon, b) {
31 Clazz.superConstructor (this, javax.swing.JCheckBoxMenuItem, [text, icon]);
32 this.setModel ( new javax.swing.JToggleButton.ToggleButtonModel ());
34 this.setFocusable (false);
35 }, "~S,javax.swing.Icon,~B");
36 Clazz.overrideMethod (c$, "getUIClassID",
38 return "CheckBoxMenuItemUI";
40 Clazz.defineMethod (c$, "getState",
42 return this.isSelected ();
44 Clazz.defineMethod (c$, "setState",
48 Clazz.overrideMethod (c$, "getSelectedObjects",
50 if (this.isSelected () == false) return null;
51 var selectedObjects = new Array (1);
52 selectedObjects[0] = this.getText ();
53 return selectedObjects;
55 Clazz.overrideMethod (c$, "shouldUpdateSelectedStateFromAction",
59 Clazz.defineStatics (c$,
60 "$$uiClassID", "CheckBoxMenuItemUI");