Browse Source

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

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

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

Loading…
Cancel
Save