Browse Source

REPORT-3163 合作开发9.0设计器=>新列表面板=》让子类重写标签内容

master
plough 7 years ago
parent
commit
38f3380c67
  1. 9
      designer_base/src/com/fr/design/gui/controlpane/UIControlPane.java
  2. 5
      designer_base/src/com/fr/design/gui/frpane/HyperlinkGroupPane.java

9
designer_base/src/com/fr/design/gui/controlpane/UIControlPane.java

@ -155,7 +155,7 @@ public abstract class UIControlPane extends BasicPane implements UnrepeatedNameH
double[] columnSize = { p, f };
double[] rowSize = { p};
Component[][] components = new Component[][]{
new Component[]{new UILabel("add hyperlink "), topToolBar},
new Component[]{new UILabel(getAddItemText()), topToolBar},
};
JPanel leftTopPane = TableLayoutHelper.createTableLayoutPane(components,rowSize,columnSize);
leftTopPane.setBorder(BorderFactory.createEmptyBorder(0, 0, 6, 0));
@ -164,6 +164,13 @@ public abstract class UIControlPane extends BasicPane implements UnrepeatedNameH
return leftPane;
}
/**
* 子类重写此方法可以改变标签内容
*/
protected String getAddItemText() {
return "add item ";
}
/**
* 初始化左边面板
*/

5
designer_base/src/com/fr/design/gui/frpane/HyperlinkGroupPane.java

@ -53,6 +53,11 @@ public abstract class HyperlinkGroupPane extends UIListControlPane {
return Inter.getLocText("FR-Designer_Hyperlink");
}
@Override
protected String getAddItemText() {
return "add hyperlink";
}
public void populate(NameJavaScriptGroup nameHyperlink_array) {
java.util.List<NameObject> list = new ArrayList<NameObject>();
if (nameHyperlink_array != null) {

Loading…
Cancel
Save