Browse Source

REPORT-55370 【10.0.18冒烟】参数控件TAb键切换顺序展示有问题

【问题原因】
迭代中右侧栏面板改动,需要将尺寸相关的属性放到高级属性上方,因此
高级属性所在的XXXDefinePane被设置了BorderLayout.CENTER
约束。而参数面板的DefinePane中,位于中间的尺寸面板,也被设置了
BorderLayout.CENTER约束,导致尺寸面板的尺寸变为最大尺寸。
【改动思路】
1. 中间加一层Pane,打破CENTER约束里还有CENTER约束的情况,使得
位于右侧栏参数面板属性底部,来自插件的ExtraUI占据最大尺寸
2. 参数面板的尺寸属性也需要放置在高级属性上方,与控件保持一致
zheng-1641779399395
Starryi 3 years ago
parent
commit
1cb11fcd9f
  1. 15
      designer-form/src/main/java/com/fr/design/parameter/RootDesignDefinePane.java

15
designer-form/src/main/java/com/fr/design/parameter/RootDesignDefinePane.java

@ -62,13 +62,18 @@ public class RootDesignDefinePane extends AbstractDataModify<WParameterLayout> {
public void initComponent() {
this.setLayout(FRGUIPaneFactory.createBorderLayout());
JPanel inbuiltDefineContentPane = FRGUIPaneFactory.createBorderLayout_S_Pane();
this.add(inbuiltDefineContentPane, BorderLayout.NORTH);
designerWidth = new UIBoundSpinner(1, Integer.MAX_VALUE, 1);
JPanel advancePane = createAdvancePane();
UIExpandablePane advanceExpandablePane = new UIExpandablePane(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_Advanced"), 280, 20, advancePane);
this.add(advanceExpandablePane, BorderLayout.NORTH);
JPanel layoutPane = createBoundsPane();
UIExpandablePane layoutExpandablePane = new UIExpandablePane(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Form_Size"), 280, 20, layoutPane);
this.add(layoutExpandablePane, BorderLayout.CENTER);
inbuiltDefineContentPane.add(layoutExpandablePane, BorderLayout.NORTH);
JPanel advancePane = createAdvancePane();
UIExpandablePane advanceExpandablePane = new UIExpandablePane(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_Advanced"), 280, 20, advancePane);
inbuiltDefineContentPane.add(advanceExpandablePane, BorderLayout.CENTER);
this.addExtraUIExpandablePaneFromPlugin();
}
@ -83,7 +88,7 @@ public class RootDesignDefinePane extends AbstractDataModify<WParameterLayout> {
panel.add(uiExpandablePane);
}
}
this.add(panel, BorderLayout.SOUTH);
this.add(panel, BorderLayout.CENTER);
}
public JPanel createBoundsPane() {

Loading…
Cancel
Save