Browse Source

REPORT-3163 合作开发9.0设计器=>所有tab弹出后,显示“无可用配置项”

master
plough 8 years ago
parent
commit
64474ba905
  1. 1
      designer_base/src/com/fr/design/locale/designer.properties
  2. 1
      designer_base/src/com/fr/design/locale/designer_en_US.properties
  3. 1
      designer_base/src/com/fr/design/locale/designer_ja_JP.properties
  4. 1
      designer_base/src/com/fr/design/locale/designer_ko_KR.properties
  5. 1
      designer_base/src/com/fr/design/locale/designer_zh_CN.properties
  6. 1
      designer_base/src/com/fr/design/locale/designer_zh_TW.properties
  7. 20
      designer_base/src/com/fr/design/mainframe/EastRegionContainerPane.java

1
designer_base/src/com/fr/design/locale/designer.properties

@ -2009,3 +2009,4 @@ FR-Designer_Cell_Element=Cell Element
FR-Designer_Cell_Attributes=Cell Attributes FR-Designer_Cell_Attributes=Cell Attributes
FR-Designer_Float_Element=Float Element FR-Designer_Float_Element=Float Element
FR-Designer_Widget_Library=Widget Library FR-Designer_Widget_Library=Widget Library
FR-Designer_No_Settings_Available=No Settings Available!

1
designer_base/src/com/fr/design/locale/designer_en_US.properties

@ -2009,3 +2009,4 @@ FR-Designer_Cell_Element=Cell Element
FR-Designer_Cell_Attributes=Cell Attributes FR-Designer_Cell_Attributes=Cell Attributes
FR-Designer_Float_Element=Float Element FR-Designer_Float_Element=Float Element
FR-Designer_Widget_Library=Widget Library FR-Designer_Widget_Library=Widget Library
FR-Designer_No_Settings_Available=No Settings Available!

1
designer_base/src/com/fr/design/locale/designer_ja_JP.properties

@ -1986,3 +1986,4 @@ FR-Designer_Cell_Element=\u30BB\u30EB\u8981\u7D20
FR-Designer_Cell_Attributes=\u30BB\u30EB\u5C5E\u6027 FR-Designer_Cell_Attributes=\u30BB\u30EB\u5C5E\u6027
FR-Designer_Float_Element=\u30D5\u30ED\u30FC\u30C8\u8981\u7D20 FR-Designer_Float_Element=\u30D5\u30ED\u30FC\u30C8\u8981\u7D20
FR-Designer_Widget_Library= FR-Designer_Widget_Library=
FR-Designer_No_Settings_Available=

1
designer_base/src/com/fr/design/locale/designer_ko_KR.properties

@ -1986,3 +1986,4 @@ FR-Designer_Cell_Element=\uC140\uC694\uC18C
FR-Designer_Cell_Attributes=\uC140\uC18D\uC131 FR-Designer_Cell_Attributes=\uC140\uC18D\uC131
FR-Designer_Float_Element=\uD638\uBC84\uC694\uC18C FR-Designer_Float_Element=\uD638\uBC84\uC694\uC18C
FR-Designer_Widget_Library= FR-Designer_Widget_Library=
FR-Designer_No_Settings_Available=

1
designer_base/src/com/fr/design/locale/designer_zh_CN.properties

@ -2007,3 +2007,4 @@ FR-Designer_Cell_Element=\u5355\u5143\u683C\u5143\u7D20
FR-Designer_Cell_Attributes=\u5355\u5143\u683C\u5C5E\u6027 FR-Designer_Cell_Attributes=\u5355\u5143\u683C\u5C5E\u6027
FR-Designer_Float_Element=\u60AC\u6D6E\u5143\u7D20 FR-Designer_Float_Element=\u60AC\u6D6E\u5143\u7D20
FR-Designer_Widget_Library=\u7EC4\u4EF6\u5E93 FR-Designer_Widget_Library=\u7EC4\u4EF6\u5E93
FR-Designer_No_Settings_Available=\u65E0\u53EF\u7528\u914D\u7F6E\u9879\uFF01

1
designer_base/src/com/fr/design/locale/designer_zh_TW.properties

@ -2008,3 +2008,4 @@ FR-Designer_Cell_Element=\u5132\u5B58\u683C\u5143\u7D20
FR-Designer_Cell_Attributes=\u5132\u5B58\u683C\u5C6C\u6027 FR-Designer_Cell_Attributes=\u5132\u5B58\u683C\u5C6C\u6027
FR-Designer_Float_Element=\u61F8\u6D6E\u5143\u7D20 FR-Designer_Float_Element=\u61F8\u6D6E\u5143\u7D20
FR-Designer_Widget_Library=\u7D44\u4EF6\u5EAB FR-Designer_Widget_Library=\u7D44\u4EF6\u5EAB
FR-Designer_No_Settings_Available=\u7121\u53EF\u7528\u914D\u5BD8\u9805\uFF01

20
designer_base/src/com/fr/design/mainframe/EastRegionContainerPane.java

@ -79,6 +79,15 @@ public class EastRegionContainerPane extends UIEastResizableContainer {
propertyItemList.add(widgetLib); propertyItemList.add(widgetLib);
} }
// "无可用配置项"面板
private JPanel getDefaultPane() {
JPanel defaultPane = new JPanel();
UILabel label = new UILabel(Inter.getLocText("FR-Designer_No_Settings_Available"));
defaultPane.setLayout(new BorderLayout());
defaultPane.add(label, BorderLayout.CENTER);
return defaultPane;
}
private void initContentPane() { private void initContentPane() {
initRightPane(); initRightPane();
initLeftPane(); initLeftPane();
@ -91,8 +100,12 @@ public class EastRegionContainerPane extends UIEastResizableContainer {
rightPane.setBackground(Color.green); rightPane.setBackground(Color.green);
rightPane.setLayout(propertyCard); rightPane.setLayout(propertyCard);
for (PropertyItem item : propertyItemList) { for (PropertyItem item : propertyItemList) {
if (item.isPoppedOut()) {
continue;
}
rightPane.add(item.getName(), item.getPropertyPanel()); rightPane.add(item.getName(), item.getPropertyPanel());
} }
rightPane.add(getDefaultPane());
replaceRightPane(rightPane); replaceRightPane(rightPane);
} }
@ -102,6 +115,9 @@ public class EastRegionContainerPane extends UIEastResizableContainer {
leftPane = new JPanel(); leftPane = new JPanel();
leftPane.setLayout(new VerticalFlowLayout(VerticalFlowLayout.TOP, 0, 0)); leftPane.setLayout(new VerticalFlowLayout(VerticalFlowLayout.TOP, 0, 0));
for (PropertyItem item : propertyItemList) { for (PropertyItem item : propertyItemList) {
if (item.isPoppedOut()) {
continue;
}
leftPane.add(item.getButton()); leftPane.add(item.getButton());
} }
@ -259,6 +275,10 @@ public class EastRegionContainerPane extends UIEastResizableContainer {
this.isPoppedOut = isPoppedOut; this.isPoppedOut = isPoppedOut;
} }
public boolean isPoppedOut() {
return isPoppedOut;
}
public JComponent generateContentPane() { public JComponent generateContentPane() {
JComponent contentPane = new JPanel(); JComponent contentPane = new JPanel();
JButton testBtn = new JButton(name); JButton testBtn = new JButton(name);

Loading…
Cancel
Save