|
|
|
@ -25,7 +25,7 @@ public class MobileTopParamPane extends BasicBeanPane<MobileTopParamStyle> {
|
|
|
|
|
private UILabel showCountTextField; |
|
|
|
|
private static final int MAX_VALUE = 4; |
|
|
|
|
private static final int MAX_VALUE_AUTO = 3; |
|
|
|
|
private static final int MIN_VALUE = 0; |
|
|
|
|
private static final int MIN_VALUE = 1; |
|
|
|
|
private static final int DEFAULT_DIERTA = 1; |
|
|
|
|
private static final int DEFAULT_VALUE = 0; |
|
|
|
|
private static final int GAP = 2; |
|
|
|
@ -39,7 +39,7 @@ public class MobileTopParamPane extends BasicBeanPane<MobileTopParamStyle> {
|
|
|
|
|
JPanel panel = FRGUIPaneFactory.createTitledBorderPane(Toolkit.i18nText("Fine-Plugin-TopParam_Setting")); |
|
|
|
|
panel.setLayout(new FlowLayout(FlowLayout.LEFT, 0, 0)); |
|
|
|
|
autoCommitCheckBox = new UICheckBox(Toolkit.i18nText("Fine-Plugin-TopParam_AutoCommit"), true); |
|
|
|
|
maxDirectShowCountSpinner = new UISpinner(MIN_VALUE, MAX_VALUE_AUTO, DEFAULT_DIERTA, DEFAULT_VALUE); |
|
|
|
|
maxDirectShowCountSpinner = new UISpinner(MIN_VALUE, MAX_VALUE, DEFAULT_DIERTA, DEFAULT_VALUE); |
|
|
|
|
showCountTextField = new UILabel(Toolkit.i18nText("Fine-Design_Mobile_Widget_Show_Count")); |
|
|
|
|
Component[][] components = {{autoCommitCheckBox},{showCountTextField, maxDirectShowCountSpinner}}; |
|
|
|
|
double p = TableLayout.PREFERRED; |
|
|
|
@ -53,7 +53,7 @@ public class MobileTopParamPane extends BasicBeanPane<MobileTopParamStyle> {
|
|
|
|
|
autoCommitCheckBox.addActionListener(new ActionListener() { |
|
|
|
|
@Override |
|
|
|
|
public void actionPerformed(ActionEvent e) { |
|
|
|
|
if (autoCommitCheckBox.isSelected()) { |
|
|
|
|
if (!autoCommitCheckBox.isSelected()) { |
|
|
|
|
maxDirectShowCountSpinner.setMaxValue(MAX_VALUE_AUTO); |
|
|
|
|
if (maxDirectShowCountSpinner.getValue() >= MAX_VALUE) { |
|
|
|
|
maxDirectShowCountSpinner.setValue(MAX_VALUE_AUTO); |
|
|
|
|