|
|
@ -25,36 +25,43 @@ public class UIRadioButton extends JRadioButton implements UIObserver, GlobalNam |
|
|
|
public UIRadioButton() { |
|
|
|
public UIRadioButton() { |
|
|
|
super(); |
|
|
|
super(); |
|
|
|
initListener(); |
|
|
|
initListener(); |
|
|
|
|
|
|
|
initComponent(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public UIRadioButton(Icon icon) { |
|
|
|
public UIRadioButton(Icon icon) { |
|
|
|
super(icon); |
|
|
|
super(icon); |
|
|
|
initListener(); |
|
|
|
initListener(); |
|
|
|
|
|
|
|
initComponent(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public UIRadioButton(Action a) { |
|
|
|
public UIRadioButton(Action a) { |
|
|
|
super(a); |
|
|
|
super(a); |
|
|
|
initListener(); |
|
|
|
initListener(); |
|
|
|
|
|
|
|
initComponent(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public UIRadioButton(Icon icon, boolean selected) { |
|
|
|
public UIRadioButton(Icon icon, boolean selected) { |
|
|
|
super(icon, selected); |
|
|
|
super(icon, selected); |
|
|
|
initListener(); |
|
|
|
initListener(); |
|
|
|
|
|
|
|
initComponent(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public UIRadioButton(String text) { |
|
|
|
public UIRadioButton(String text) { |
|
|
|
super(text); |
|
|
|
super(text); |
|
|
|
initListener(); |
|
|
|
initListener(); |
|
|
|
|
|
|
|
initComponent(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public UIRadioButton(String text, boolean selected) { |
|
|
|
public UIRadioButton(String text, boolean selected) { |
|
|
|
super(text, selected); |
|
|
|
super(text, selected); |
|
|
|
initListener(); |
|
|
|
initListener(); |
|
|
|
|
|
|
|
initComponent(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public UIRadioButton(String text, Icon icon) { |
|
|
|
public UIRadioButton(String text, Icon icon) { |
|
|
|
super(text, icon); |
|
|
|
super(text, icon); |
|
|
|
initListener(); |
|
|
|
initListener(); |
|
|
|
|
|
|
|
initComponent(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -81,6 +88,10 @@ public class UIRadioButton extends JRadioButton implements UIObserver, GlobalNam |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private void initComponent() { |
|
|
|
|
|
|
|
this.setFocusPainted(false); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* 给组件登记一个观察者监听事件 |
|
|
|
* 给组件登记一个观察者监听事件 |
|
|
|
* |
|
|
|
* |
|
|
|