|
|
@ -59,8 +59,18 @@ public class UIComboCheckBox extends JComponent implements UIObserver, GlobalNam |
|
|
|
private String multiComboName = StringUtils.EMPTY; |
|
|
|
private String multiComboName = StringUtils.EMPTY; |
|
|
|
private boolean showOmitText = true; |
|
|
|
private boolean showOmitText = true; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private boolean supportSelectAll = true; |
|
|
|
|
|
|
|
|
|
|
|
public UIComboCheckBox(Object[] value) { |
|
|
|
public UIComboCheckBox(Object[] value) { |
|
|
|
this(value, DEFAULT_VALUE_SPERATOR); |
|
|
|
this(value, DEFAULT_VALUE_SPERATOR, true); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public UIComboCheckBox(Object[] value, boolean supportSelectAll) { |
|
|
|
|
|
|
|
this(value, DEFAULT_VALUE_SPERATOR, supportSelectAll); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public UIComboCheckBox(Object[] values, String valueSperator) { |
|
|
|
|
|
|
|
this(values, valueSperator, true); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
@ -69,8 +79,9 @@ public class UIComboCheckBox extends JComponent implements UIObserver, GlobalNam |
|
|
|
* @param value |
|
|
|
* @param value |
|
|
|
* @param valueSperator |
|
|
|
* @param valueSperator |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public UIComboCheckBox(Object[] value, String valueSperator) { |
|
|
|
public UIComboCheckBox(Object[] value, String valueSperator, boolean supportSelectAll) { |
|
|
|
values = value; |
|
|
|
values = value; |
|
|
|
|
|
|
|
this.supportSelectAll = supportSelectAll; |
|
|
|
this.valueSperator = valueSperator; |
|
|
|
this.valueSperator = valueSperator; |
|
|
|
initComponent(); |
|
|
|
initComponent(); |
|
|
|
} |
|
|
|
} |
|
|
@ -102,7 +113,7 @@ public class UIComboCheckBox extends JComponent implements UIObserver, GlobalNam |
|
|
|
|
|
|
|
|
|
|
|
private void initComponent() { |
|
|
|
private void initComponent() { |
|
|
|
this.setLayout(new FlowLayout(FlowLayout.LEFT, 0, 0)); |
|
|
|
this.setLayout(new FlowLayout(FlowLayout.LEFT, 0, 0)); |
|
|
|
this.popup = new UICheckListPopup(values); |
|
|
|
this.popup = new UICheckListPopup(values, supportSelectAll); |
|
|
|
this.popup.addActionListener(new PopupAction()); |
|
|
|
this.popup.addActionListener(new PopupAction()); |
|
|
|
this.editor = createEditor(); |
|
|
|
this.editor = createEditor(); |
|
|
|
this.arrowButton = createArrowButton(); |
|
|
|
this.arrowButton = createArrowButton(); |
|
|
|