Merge branch 'master' of https://source.jalview.org/git/jalviewjs.git
[jalviewjs.git] / site / j2s / javax / swing / JRadioButton.js
1 Clazz.declarePackage ("javax.swing");
2 Clazz.load (["javax.swing.JToggleButton"], "javax.swing.JRadioButton", ["javax.swing.UIManager"], function () {
3 c$ = Clazz.declareType (javax.swing, "JRadioButton", javax.swing.JToggleButton);
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 (a) {
14 this.construct ();
15 this.setAction (a);
16 }, "javax.swing.Action");
17 Clazz.makeConstructor (c$, 
18 function (icon, selected) {
19 this.construct (null, icon, selected);
20 }, "javax.swing.Icon,~B");
21 Clazz.makeConstructor (c$, 
22 function (text) {
23 this.construct (text, null, false);
24 }, "~S");
25 Clazz.makeConstructor (c$, 
26 function (text, selected) {
27 this.construct (text, null, selected);
28 }, "~S,~B");
29 Clazz.makeConstructor (c$, 
30 function (text, icon) {
31 this.construct (text, icon, false);
32 }, "~S,javax.swing.Icon");
33 Clazz.makeConstructor (c$, 
34 function (text, icon, selected) {
35 Clazz.superConstructor (this, javax.swing.JRadioButton, [text, icon, selected]);
36 this.setBorderPainted (false);
37 this.setHorizontalAlignment (10);
38 }, "~S,javax.swing.Icon,~B");
39 Clazz.overrideMethod (c$, "updateUI", 
40 function () {
41 this.setUI (javax.swing.UIManager.getUI (this));
42 });
43 Clazz.overrideMethod (c$, "getUIClassID", 
44 function () {
45 return "RadioButtonUI";
46 });
47 Clazz.overrideMethod (c$, "setIconFromAction", 
48 function (a) {
49 }, "javax.swing.Action");
50 Clazz.defineStatics (c$,
51 "$$uiClassID", "RadioButtonUI");
52 });