|
|
@ -640,42 +640,13 @@ public class FormParaDesigner extends FormDesigner implements ParameterDesignerP |
|
|
|
* @return 是否加入 s |
|
|
|
* @return 是否加入 s |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public void addingAllParameter2Editor(Parameter[] parameterArray, int currentIndex) { |
|
|
|
public void addingAllParameter2Editor(Parameter[] parameterArray, int currentIndex) { |
|
|
|
for (int i = 0; i < parameterArray.length; i++) { |
|
|
|
addingAllParameter2EditorWithReturnValue(parameterArray, currentIndex); |
|
|
|
com.fr.form.ui.Label label = new com.fr.form.ui.Label(); |
|
|
|
|
|
|
|
label.setWidgetName("Label" + parameterArray[i].getName()); |
|
|
|
|
|
|
|
label.setWidgetValue(new WidgetValue(parameterArray[i].getName() + ":")); |
|
|
|
|
|
|
|
XCreator xCreator = XCreatorUtils.createXCreator(label); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!(this.autoAddComponent(xCreator, H_COMPONENT_GAP * (currentIndex % NUM_IN_A_LINE) |
|
|
|
|
|
|
|
+ FIRST_H_LOCATION, FIRST_V_LOCATION + V_COMPONENT_GAP * (currentIndex / NUM_IN_A_LINE)))) { |
|
|
|
|
|
|
|
break; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
// 每行显示5组
|
|
|
|
|
|
|
|
EditorHolder editor = new EditorHolder(parameterArray[i]); |
|
|
|
|
|
|
|
editor.setWidgetName(parameterArray[i].getName()); |
|
|
|
|
|
|
|
xCreator = XCreatorUtils.createXCreator(editor); |
|
|
|
|
|
|
|
if (!(this.autoAddComponent(xCreator, H_COMPONENT_GAP * (currentIndex % NUM_IN_A_LINE) |
|
|
|
|
|
|
|
+ SECOND_H_LOCATION, FIRST_V_LOCATION + V_COMPONENT_GAP * (currentIndex / NUM_IN_A_LINE)))) { |
|
|
|
|
|
|
|
break; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
currentIndex++; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if (!isWithQueryButton()) { |
|
|
|
|
|
|
|
FormSubmitButton formSubmitButton = new FormSubmitButton(); |
|
|
|
|
|
|
|
formSubmitButton.setWidgetName("Search"); |
|
|
|
|
|
|
|
formSubmitButton.setText(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Form_Query")); |
|
|
|
|
|
|
|
XCreator xCreator = XCreatorUtils.createXCreator(formSubmitButton); |
|
|
|
|
|
|
|
if (!(this.autoAddComponent(xCreator, H_COMPONENT_GAP * 3 + H_GAP, FIRST_V_LOCATION |
|
|
|
|
|
|
|
+ V_COMPONENT_GAP * (currentIndex / NUM_IN_A_LINE)))) { |
|
|
|
|
|
|
|
return; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* @Description: 添加所有的参数,并返回当前的currentIndex。此方法为addingAllParameter2Editor的兼容方法。 |
|
|
|
|
|
|
|
* @param parameterArray 参数数组 |
|
|
|
* @param parameterArray 参数数组 |
|
|
|
* @param currentIndex 添加所有参数前的index值 |
|
|
|
* @param currentIndex 添加所有参数前的index值 |
|
|
|
|
|
|
|
* @Description: 添加所有的参数,并返回当前的currentIndex。此方法为addingAllParameter2Editor的兼容方法。 |
|
|
|
* @return: 添加所有参数后的index值 |
|
|
|
* @return: 添加所有参数后的index值 |
|
|
|
* @Author: Henry.Wang |
|
|
|
* @Author: Henry.Wang |
|
|
|
* @date: 2020/8/5 19:40 |
|
|
|
* @date: 2020/8/5 19:40 |
|
|
|