|
|
@ -5,7 +5,11 @@ import com.fr.design.beans.ErrorMsgTextFieldAdapter; |
|
|
|
import com.fr.design.beans.UITextFieldAdapter; |
|
|
|
import com.fr.design.beans.UITextFieldAdapter; |
|
|
|
import com.fr.design.constants.LayoutConstants; |
|
|
|
import com.fr.design.constants.LayoutConstants; |
|
|
|
import com.fr.design.designer.IntervalConstants; |
|
|
|
import com.fr.design.designer.IntervalConstants; |
|
|
|
import com.fr.design.designer.creator.*; |
|
|
|
import com.fr.design.designer.creator.XCreator; |
|
|
|
|
|
|
|
import com.fr.design.designer.creator.XCreatorUtils; |
|
|
|
|
|
|
|
import com.fr.design.designer.creator.XLayoutContainer; |
|
|
|
|
|
|
|
import com.fr.design.designer.creator.XWFitLayout; |
|
|
|
|
|
|
|
import com.fr.design.designer.creator.XWParameterLayout; |
|
|
|
import com.fr.design.foldablepane.UIExpandablePane; |
|
|
|
import com.fr.design.foldablepane.UIExpandablePane; |
|
|
|
import com.fr.design.fun.TextFieldAdapterProvider; |
|
|
|
import com.fr.design.fun.TextFieldAdapterProvider; |
|
|
|
import com.fr.design.gui.icheckbox.UICheckBox; |
|
|
|
import com.fr.design.gui.icheckbox.UICheckBox; |
|
|
@ -15,12 +19,12 @@ import com.fr.design.layout.FRGUIPaneFactory; |
|
|
|
import com.fr.design.layout.TableLayoutHelper; |
|
|
|
import com.fr.design.layout.TableLayoutHelper; |
|
|
|
import com.fr.design.widget.ui.designer.component.FontSizeComboPane; |
|
|
|
import com.fr.design.widget.ui.designer.component.FontSizeComboPane; |
|
|
|
import com.fr.form.ui.FieldEditor; |
|
|
|
import com.fr.form.ui.FieldEditor; |
|
|
|
|
|
|
|
import com.fr.log.FineLoggerFactory; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import javax.swing.BorderFactory; |
|
|
|
import javax.swing.*; |
|
|
|
import javax.swing.JPanel; |
|
|
|
import javax.swing.event.DocumentEvent; |
|
|
|
import java.awt.BorderLayout; |
|
|
|
import javax.swing.event.DocumentListener; |
|
|
|
import java.awt.Component; |
|
|
|
import java.awt.*; |
|
|
|
|
|
|
|
import java.awt.event.ItemEvent; |
|
|
|
import java.awt.event.ItemEvent; |
|
|
|
import java.awt.event.ItemListener; |
|
|
|
import java.awt.event.ItemListener; |
|
|
|
|
|
|
|
|
|
|
@ -80,12 +84,18 @@ public abstract class FieldEditorDefinePane<T extends FieldEditor> extends Abstr |
|
|
|
protected void initErrorMsgPane() { |
|
|
|
protected void initErrorMsgPane() { |
|
|
|
// 错误信息
|
|
|
|
// 错误信息
|
|
|
|
TextFieldAdapterProvider provider = ExtraDesignClassManager.getInstance().getSingle(TextFieldAdapterProvider.XML_TAG); |
|
|
|
TextFieldAdapterProvider provider = ExtraDesignClassManager.getInstance().getSingle(TextFieldAdapterProvider.XML_TAG); |
|
|
|
if (provider != null) { |
|
|
|
if (provider == null) { |
|
|
|
errorMsgTextField= provider.createTextFieldAdapter(); |
|
|
|
errorMsgTextField = new UITextFieldAdapter(); |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
try { |
|
|
|
|
|
|
|
errorMsgTextField = provider.createTextFieldAdapter(); |
|
|
|
|
|
|
|
} catch (Exception e) { |
|
|
|
|
|
|
|
FineLoggerFactory.getLogger().error(e.getMessage(), e); |
|
|
|
errorMsgTextField = new UITextFieldAdapter(); |
|
|
|
errorMsgTextField = new UITextFieldAdapter(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
protected abstract T updateSubFieldEditorBean(); |
|
|
|
protected abstract T updateSubFieldEditorBean(); |
|
|
|
|
|
|
|
|
|
|
|