ca9cbef807c83c1401d3e21160908fbe67297b0d
[jalviewjs.git] / site / swingjs / j2s / javax / swing / JRadioButtonMenuItem.js
1 Clazz.declarePackage ("javax.swing");
2 Clazz.load (["javax.swing.JMenuItem"], "javax.swing.JRadioButtonMenuItem", ["javax.swing.JToggleButton"], function () {
3 c$ = Clazz.declareType (javax.swing, "JRadioButtonMenuItem", javax.swing.JMenuItem);
4 Clazz.makeConstructor (c$, 
5 function () {
6 this.construct (null, null, false);
7 });
8 Clazz.makeConstructor (c$, 
9 function (icon) {
10 this.construct (null, icon, false);
11 }, "javax.swing.Icon");
12 Clazz.makeConstructor (c$, 
13 function (text) {
14 this.construct (text, null, false);
15 }, "~S");
16 Clazz.makeConstructor (c$, 
17 function (a) {
18 this.construct ();
19 this.setAction (a);
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$, 
26 function (text, selected) {
27 this.construct (text);
28 this.setSelected (selected);
29 }, "~S,~B");
30 Clazz.makeConstructor (c$, 
31 function (icon, selected) {
32 this.construct (null, icon, selected);
33 }, "javax.swing.Icon,~B");
34 Clazz.makeConstructor (c$, 
35 function (text, icon, selected) {
36 Clazz.superConstructor (this, javax.swing.JRadioButtonMenuItem, [text, icon]);
37 this.setModel ( new javax.swing.JToggleButton.ToggleButtonModel ());
38 this.setSelected (selected);
39 this.setFocusable (false);
40 }, "~S,javax.swing.Icon,~B");
41 Clazz.overrideMethod (c$, "getUIClassID", 
42 function () {
43 return "RadioButtonMenuItemUI";
44 });
45 Clazz.overrideMethod (c$, "shouldUpdateSelectedStateFromAction", 
46 function () {
47 return true;
48 });
49 Clazz.defineStatics (c$,
50 "$$uiClassID", "RadioButtonMenuItemUI");
51 });