1 Clazz.declarePackage ("javax.swing");
2 Clazz.load (["javax.swing.JToggleButton"], "javax.swing.JCheckBox", ["java.lang.Boolean", "javax.swing.UIManager"], function () {
3 c$ = Clazz.decorateAsClass (function () {
5 Clazz.instantialize (this, arguments);
6 }, javax.swing, "JCheckBox", javax.swing.JToggleButton);
7 Clazz.makeConstructor (c$,
9 this.construct (null, null, false);
11 Clazz.makeConstructor (c$,
13 this.construct (null, icon, false);
14 }, "javax.swing.Icon");
15 Clazz.makeConstructor (c$,
16 function (icon, selected) {
17 this.construct (null, icon, selected);
18 }, "javax.swing.Icon,~B");
19 Clazz.makeConstructor (c$,
21 this.construct (text, null, false);
23 Clazz.makeConstructor (c$,
27 }, "javax.swing.Action");
28 Clazz.makeConstructor (c$,
29 function (text, selected) {
30 this.construct (text, null, selected);
32 Clazz.makeConstructor (c$,
33 function (text, icon) {
34 this.construct (text, icon, false);
35 }, "~S,javax.swing.Icon");
36 Clazz.makeConstructor (c$,
37 function (text, icon, selected) {
38 Clazz.superConstructor (this, javax.swing.JCheckBox, [text, icon, selected]);
39 this.setUIProperty ("borderPainted", Boolean.FALSE);
40 this.setHorizontalAlignment (10);
41 }, "~S,javax.swing.Icon,~B");
42 Clazz.defineMethod (c$, "setBorderPaintedFlat",
44 var oldValue = this.flat;
46 this.firePropertyChangeBool ("borderPaintedFlat", oldValue, this.flat);
51 Clazz.defineMethod (c$, "isBorderPaintedFlat",
55 Clazz.overrideMethod (c$, "updateUI",
57 this.setUI (javax.swing.UIManager.getUI (this));
59 Clazz.overrideMethod (c$, "getUIClassID",
63 Clazz.overrideMethod (c$, "setIconFromAction",
65 }, "javax.swing.Action");
66 Clazz.defineStatics (c$,
67 "BORDER_PAINTED_FLAT_CHANGED_PROPERTY", "borderPaintedFlat",
68 "$$uiClassID", "CheckBoxUI");