|
|
@ -8,6 +8,7 @@ import javax.swing.BorderFactory; |
|
|
|
|
|
|
|
|
|
|
|
import com.fr.design.gui.frpane.TreeSettingPane; |
|
|
|
import com.fr.design.gui.frpane.TreeSettingPane; |
|
|
|
import com.fr.design.gui.ilable.UILabel; |
|
|
|
import com.fr.design.gui.ilable.UILabel; |
|
|
|
|
|
|
|
|
|
|
|
import javax.swing.JPanel; |
|
|
|
import javax.swing.JPanel; |
|
|
|
import javax.swing.event.DocumentEvent; |
|
|
|
import javax.swing.event.DocumentEvent; |
|
|
|
import javax.swing.event.DocumentListener; |
|
|
|
import javax.swing.event.DocumentListener; |
|
|
@ -47,7 +48,7 @@ public abstract class FieldEditorDefinePane<T extends FieldEditor> extends Abstr |
|
|
|
// 错误信息
|
|
|
|
// 错误信息
|
|
|
|
JPanel errorMsgPane = FRGUIPaneFactory.createLeftFlowZeroGapBorderPane(); |
|
|
|
JPanel errorMsgPane = FRGUIPaneFactory.createLeftFlowZeroGapBorderPane(); |
|
|
|
//目前只整改了文本、密码、文本域和数字四个控件
|
|
|
|
//目前只整改了文本、密码、文本域和数字四个控件
|
|
|
|
this.addAllowBlankPane(allowBlankCheckBox,errorMsgPane); |
|
|
|
this.addAllowBlankPane(allowBlankCheckBox, errorMsgPane); |
|
|
|
errorMsgPane.add(new UILabel(Inter.getLocText(new String[]{"Error", "Tooltips"}) + ":")); |
|
|
|
errorMsgPane.add(new UILabel(Inter.getLocText(new String[]{"Error", "Tooltips"}) + ":")); |
|
|
|
errorMsgTextField = new UITextField(16); |
|
|
|
errorMsgTextField = new UITextField(16); |
|
|
|
errorMsgPane.add(errorMsgTextField); |
|
|
|
errorMsgPane.add(errorMsgTextField); |
|
|
@ -106,7 +107,7 @@ public abstract class FieldEditorDefinePane<T extends FieldEditor> extends Abstr |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public void addAllowBlankPane(UICheckBox allowBlankCheckBox,JPanel errorMsgPane){ |
|
|
|
public void addAllowBlankPane(UICheckBox allowBlankCheckBox, JPanel errorMsgPane) { |
|
|
|
JPanel northPane = FRGUIPaneFactory.createY_AXISBoxInnerContainer_L_Pane(); |
|
|
|
JPanel northPane = FRGUIPaneFactory.createY_AXISBoxInnerContainer_L_Pane(); |
|
|
|
this.add(northPane, BorderLayout.NORTH); |
|
|
|
this.add(northPane, BorderLayout.NORTH); |
|
|
|
JPanel firstPanel = FRGUIPaneFactory.createNormalFlowInnerContainer_S_Pane(); |
|
|
|
JPanel firstPanel = FRGUIPaneFactory.createNormalFlowInnerContainer_S_Pane(); |
|
|
@ -115,11 +116,12 @@ public abstract class FieldEditorDefinePane<T extends FieldEditor> extends Abstr |
|
|
|
firstPanel.add(errorMsgPane); |
|
|
|
firstPanel.add(errorMsgPane); |
|
|
|
northPane.add(firstPanel); |
|
|
|
northPane.add(firstPanel); |
|
|
|
} |
|
|
|
} |
|
|
|
public UICheckBox getAllowBlankCheckBox(){ |
|
|
|
|
|
|
|
|
|
|
|
public UICheckBox getAllowBlankCheckBox() { |
|
|
|
return allowBlankCheckBox; |
|
|
|
return allowBlankCheckBox; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public UITextField getErrorMsgTextField(){ |
|
|
|
public UITextField getErrorMsgTextField() { |
|
|
|
return errorMsgTextField; |
|
|
|
return errorMsgTextField; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|