Browse Source

REPORT-59475 控件校验错误提示支持公式

zheng-1641779399395
Yuan.Wang 3 years ago
parent
commit
81bf9616db
  1. 13
      designer-base/src/main/java/com/fr/design/gui/frpane/RegFieldPane.java

13
designer-base/src/main/java/com/fr/design/gui/frpane/RegFieldPane.java

@ -13,6 +13,7 @@ import com.fr.design.layout.TableLayoutHelper;
import com.fr.form.ui.TextEditor; import com.fr.form.ui.TextEditor;
import com.fr.form.ui.reg.NoneReg; import com.fr.form.ui.reg.NoneReg;
import com.fr.form.ui.reg.RegExp; import com.fr.form.ui.reg.RegExp;
import com.fr.log.FineLoggerFactory;
import javax.swing.BorderFactory; import javax.swing.BorderFactory;
import javax.swing.JPanel; import javax.swing.JPanel;
@ -88,11 +89,17 @@ public class RegFieldPane extends RegPane {
private void initRegErrorMsgField() { private void initRegErrorMsgField() {
TextFieldAdapterProvider provider = ExtraDesignClassManager.getInstance().getSingle(TextFieldAdapterProvider.XML_TAG); TextFieldAdapterProvider provider = ExtraDesignClassManager.getInstance().getSingle(TextFieldAdapterProvider.XML_TAG);
if (provider != null) { if (provider == null) {
errorMsgTextFieldAdapter= provider.createTextFieldAdapter(); errorMsgTextFieldAdapter = new UITextFieldAdapter();
return; return;
} }
errorMsgTextFieldAdapter = new UITextFieldAdapter(); try {
errorMsgTextFieldAdapter = provider.createTextFieldAdapter();
} catch (Exception e) {
FineLoggerFactory.getLogger().error(e.getMessage(), e);
errorMsgTextFieldAdapter = new UITextFieldAdapter();
}
} }
@Override @Override

Loading…
Cancel
Save