|
|
|
@ -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; |
|
|
|
|
} |
|
|
|
|
errorMsgTextFieldAdapter = new UITextFieldAdapter(); |
|
|
|
|
try { |
|
|
|
|
errorMsgTextFieldAdapter = provider.createTextFieldAdapter(); |
|
|
|
|
} catch (Exception e) { |
|
|
|
|
FineLoggerFactory.getLogger().error(e.getMessage(), e); |
|
|
|
|
errorMsgTextFieldAdapter = new UITextFieldAdapter(); |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|