|
|
@ -331,7 +331,7 @@ public class JForm extends JTemplate<Form, FormUndoState> implements BaseJForm { |
|
|
|
ParameterPropertyPane.getInstance().setAddParaPaneVisible(false, this); |
|
|
|
ParameterPropertyPane.getInstance().setAddParaPaneVisible(false, this); |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
ParameterPropertyPane.getInstance().setAddParaPaneVisible(comp instanceof XWParameterLayout, this); |
|
|
|
ParameterPropertyPane.getInstance().setAddParaPaneVisible(isAddParaPaneVisible(comp), this); |
|
|
|
editingComponent = comp.createToolPane(this, formDesign); |
|
|
|
editingComponent = comp.createToolPane(this, formDesign); |
|
|
|
EastRegionContainerPane.getInstance().switchMode(EastRegionContainerPane.PropertyMode.FORM); |
|
|
|
EastRegionContainerPane.getInstance().switchMode(EastRegionContainerPane.PropertyMode.FORM); |
|
|
|
if (BaseUtils.isAuthorityEditing()) { |
|
|
|
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() { |
|
|
|
public JComponent getEditingPane() { |
|
|
|
return editingComponent; |
|
|
|
return editingComponent; |
|
|
|
} |
|
|
|
} |
|
|
|