Browse Source

无JIRA任务,解决选择自定义校验规则无法填写错误信息问题

master
kerry 8 years ago
parent
commit
4beb92ba7b
  1. 3
      designer/src/com/fr/design/widget/ui/TextFieldEditorDefinePane.java

3
designer/src/com/fr/design/widget/ui/TextFieldEditorDefinePane.java

@ -61,7 +61,8 @@ public class TextFieldEditorDefinePane extends FieldEditorDefinePane<TextEditor>
regPane.getRegComboBox().addActionListener(new ActionListener() { regPane.getRegComboBox().addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) { public void actionPerformed(ActionEvent e) {
RegExp regExp = (RegExp) regPane.getRegComboBox().getSelectedItem(); RegExp regExp = (RegExp) regPane.getRegComboBox().getSelectedItem();
if (!StringUtils.isNotEmpty(regExp.toRegText())) { String regText = regExp.toRegText();
if (regText != null && !StringUtils.isNotEmpty(regText)) {
getRegErrorMsgTextField().setEnabled(false); getRegErrorMsgTextField().setEnabled(false);
} else { } else {
getRegErrorMsgTextField().setEnabled(true); getRegErrorMsgTextField().setEnabled(true);

Loading…
Cancel
Save