Browse Source

REPORT-4883 模板参数控件问题=>选中参数面板内部组件时,可继续添加参数

master
plough 7 years ago
parent
commit
3e59cec997
  1. 12
      designer_form/src/com/fr/design/mainframe/JForm.java

12
designer_form/src/com/fr/design/mainframe/JForm.java

@ -331,7 +331,7 @@ public class JForm extends JTemplate<Form, FormUndoState> implements BaseJForm {
ParameterPropertyPane.getInstance().setAddParaPaneVisible(false, this);
return;
}
ParameterPropertyPane.getInstance().setAddParaPaneVisible(comp instanceof XWParameterLayout, this);
ParameterPropertyPane.getInstance().setAddParaPaneVisible(isAddParaPaneVisible(comp), this);
editingComponent = comp.createToolPane(this, formDesign);
EastRegionContainerPane.getInstance().switchMode(EastRegionContainerPane.PropertyMode.FORM);
if (BaseUtils.isAuthorityEditing()) {
@ -342,6 +342,16 @@ public class JForm extends JTemplate<Form, FormUndoState> implements BaseJForm {
}
}
private boolean isAddParaPaneVisible(XComponent comp) {
boolean isVisible = false;
try {
isVisible = comp instanceof XWParameterLayout || ((XCreator) comp).getParent() instanceof XWParameterLayout;
} catch (Throwable throwable) {
// 发生异常则返回 false
}
return isVisible;
}
public JComponent getEditingPane() {
return editingComponent;
}

Loading…
Cancel
Save