Browse Source

Pull request #3105: REPORT-45015 条件属性-数字控件没有错误提示

Merge in DESIGN/design from ~HADES/design:bugfix/10.0 to bugfix/10.0

* commit '5e9cc42c95e3f3a3da13de9b6b0d47fc511b6fba':
  REPORT-45015 条件属性-数字控件没有错误提示
bugfix/10.0
Hades 4 years ago
parent
commit
7163088fc1
  1. 2
      designer-base/src/main/java/com/fr/design/widget/component/NumberEditorValidatePane.java

2
designer-base/src/main/java/com/fr/design/widget/component/NumberEditorValidatePane.java

@ -150,6 +150,7 @@ public class NumberEditorValidatePane extends JPanel {
setMaxListener = new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
errorMsgTextFieldPane.setVisible(setMaxValueCheckBox.isSelected() || setMinValueCheckBox.isSelected());
if (setMaxValueCheckBox.isSelected()) {
maxValueSpinner.setEnabled(true);
Double value = (double) 0;
@ -171,6 +172,7 @@ public class NumberEditorValidatePane extends JPanel {
setMinListener = new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
errorMsgTextFieldPane.setVisible(setMaxValueCheckBox.isSelected() || setMinValueCheckBox.isSelected());
if (setMinValueCheckBox.isSelected()) {
minValueSpinner.setEnabled(true);
Double value = (double) 0;

Loading…
Cancel
Save