|
|
|
@ -93,6 +93,8 @@ public class JForm extends JTemplate<Form, FormUndoState> implements BaseJForm {
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public void refreshEastPropertiesPane() { |
|
|
|
|
// 暂时用不到,遇到的时候再加刷新右侧tab面板的代码
|
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@ -126,7 +128,7 @@ public class JForm extends JTemplate<Form, FormUndoState> implements BaseJForm {
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public void setJTemplateResolution(int resolution) { |
|
|
|
|
|
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@ -270,14 +272,14 @@ public class JForm extends JTemplate<Form, FormUndoState> implements BaseJForm {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public void setSheetCovered(boolean isCovered) { |
|
|
|
|
|
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 刷新容器 |
|
|
|
|
*/ |
|
|
|
|
public void refreshContainer() { |
|
|
|
|
|
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
@ -289,6 +291,7 @@ public class JForm extends JTemplate<Form, FormUndoState> implements BaseJForm {
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public void setScale(int resolution) { |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@ -464,12 +467,12 @@ public class JForm extends JTemplate<Form, FormUndoState> implements BaseJForm {
|
|
|
|
|
@Override |
|
|
|
|
public ShortCut[] shortcut4TemplateMenu() { |
|
|
|
|
if (this.index == FORM_TAB) { |
|
|
|
|
return (ShortCut[]) ArrayUtils.addAll(new ShortCut[]{ |
|
|
|
|
return (ShortCut[]) ArrayUtils.addAll( new ShortCut[]{ |
|
|
|
|
new TemplateParameterAction(this), |
|
|
|
|
new FormMobileAttrAction(this) |
|
|
|
|
}, new ShortCut[0]); |
|
|
|
|
} else { |
|
|
|
|
return (ShortCut[]) ArrayUtils.addAll(new ShortCut[]{ |
|
|
|
|
return (ShortCut[]) ArrayUtils.addAll( new ShortCut[]{ |
|
|
|
|
new TemplateParameterAction(this), |
|
|
|
|
new FormMobileAttrAction(this) |
|
|
|
|
}, this.elementCaseDesign.shortcut4TemplateMenu()); |
|
|
|
@ -680,16 +683,14 @@ public class JForm extends JTemplate<Form, FormUndoState> implements BaseJForm {
|
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (formDesign.isReportBlockEditing()) { |
|
|
|
|
if (elementCaseDesign != null) { |
|
|
|
|
EastRegionContainerPane.getInstance().switchMode(EastRegionContainerPane.PropertyMode.FORM_REPORT); |
|
|
|
|
EastRegionContainerPane.getInstance().removeParameterPane(); |
|
|
|
|
EastRegionContainerPane.getInstance().replaceCellAttrPane(elementCaseDesign.getEastDownPane()); |
|
|
|
|
EastRegionContainerPane.getInstance().replaceCellElementPane(elementCaseDesign.getEastUpPane()); |
|
|
|
|
EastRegionContainerPane.getInstance().replaceConditionAttrPane(elementCaseDesign.getConditionAttrPane()); |
|
|
|
|
EastRegionContainerPane.getInstance().replaceHyperlinkPane(elementCaseDesign.getHyperlinkPane()); |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
if (formDesign.isReportBlockEditing() && elementCaseDesign != null) { |
|
|
|
|
EastRegionContainerPane.getInstance().switchMode(EastRegionContainerPane.PropertyMode.FORM_REPORT); |
|
|
|
|
EastRegionContainerPane.getInstance().removeParameterPane(); |
|
|
|
|
EastRegionContainerPane.getInstance().replaceCellAttrPane(elementCaseDesign.getEastDownPane()); |
|
|
|
|
EastRegionContainerPane.getInstance().replaceCellElementPane(elementCaseDesign.getEastUpPane()); |
|
|
|
|
EastRegionContainerPane.getInstance().replaceConditionAttrPane(elementCaseDesign.getConditionAttrPane()); |
|
|
|
|
EastRegionContainerPane.getInstance().replaceHyperlinkPane(elementCaseDesign.getHyperlinkPane()); |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
EastRegionContainerPane.getInstance().switchMode(EastRegionContainerPane.PropertyMode.FORM); |
|
|
|
@ -699,6 +700,10 @@ public class JForm extends JTemplate<Form, FormUndoState> implements BaseJForm {
|
|
|
|
|
EastRegionContainerPane.getInstance().addParameterPane(parameterPropertyPane); |
|
|
|
|
EastRegionContainerPane.getInstance().setParameterHeight(parameterPropertyPane.getPreferredSize().height); |
|
|
|
|
|
|
|
|
|
refreshWidgetLibPane(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private void refreshWidgetLibPane() { |
|
|
|
|
if (EastRegionContainerPane.getInstance().getWidgetLibPane() == null) { |
|
|
|
|
new Thread() { |
|
|
|
|
public void run() { |
|
|
|
|