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