|
|
|
@ -1,5 +1,6 @@
|
|
|
|
|
package com.fr.design.gui.icheckbox; |
|
|
|
|
|
|
|
|
|
import com.fr.base.i18n.BidiUtils; |
|
|
|
|
import com.fr.design.constants.UIConstants; |
|
|
|
|
import com.fr.design.event.GlobalNameListener; |
|
|
|
|
import com.fr.design.event.GlobalNameObserver; |
|
|
|
@ -40,18 +41,21 @@ public class UICheckBox extends JCheckBox implements UIObserver, GlobalNameObser
|
|
|
|
|
super(string); |
|
|
|
|
setUI(new UICheckBoxUI()); |
|
|
|
|
initListener(); |
|
|
|
|
BidiUtils.setOrientationByLocale(this); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public UICheckBox() { |
|
|
|
|
super(); |
|
|
|
|
setUI(new UICheckBoxUI()); |
|
|
|
|
initListener(); |
|
|
|
|
BidiUtils.setOrientationByLocale(this); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public UICheckBox(String locText, boolean b) { |
|
|
|
|
super(locText, b); |
|
|
|
|
setUI(new UICheckBoxUI()); |
|
|
|
|
initListener(); |
|
|
|
|
BidiUtils.setOrientationByLocale(this); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public UICheckBox(String locText, boolean b, boolean markMnemonic) { |
|
|
|
@ -59,12 +63,14 @@ public class UICheckBox extends JCheckBox implements UIObserver, GlobalNameObser
|
|
|
|
|
setUI(new UICheckBoxUI()); |
|
|
|
|
initListener(); |
|
|
|
|
this.markMnemonic = markMnemonic; |
|
|
|
|
BidiUtils.setOrientationByLocale(this); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public UICheckBox(String text, Icon icon) { |
|
|
|
|
super(text, icon); |
|
|
|
|
setUI(new UICheckBoxUI()); |
|
|
|
|
initListener(); |
|
|
|
|
BidiUtils.setOrientationByLocale(this); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
protected void initListener() { |
|
|
|
|