From 38f3380c67076811111d1199cb9e8d992c77fed8 Mon Sep 17 00:00:00 2001 From: plough Date: Mon, 24 Jul 2017 18:30:05 +0800 Subject: [PATCH] =?UTF-8?q?REPORT-3163=20=E5=90=88=E4=BD=9C=E5=BC=80?= =?UTF-8?q?=E5=8F=919.0=E8=AE=BE=E8=AE=A1=E5=99=A8=3D>=E6=96=B0=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E9=9D=A2=E6=9D=BF=3D=E3=80=8B=E8=AE=A9=E5=AD=90?= =?UTF-8?q?=E7=B1=BB=E9=87=8D=E5=86=99=E6=A0=87=E7=AD=BE=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/com/fr/design/gui/controlpane/UIControlPane.java | 9 ++++++++- .../src/com/fr/design/gui/frpane/HyperlinkGroupPane.java | 5 +++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/designer_base/src/com/fr/design/gui/controlpane/UIControlPane.java b/designer_base/src/com/fr/design/gui/controlpane/UIControlPane.java index 8878cd43a8..632889bba8 100644 --- a/designer_base/src/com/fr/design/gui/controlpane/UIControlPane.java +++ b/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 "; + } + /** * 初始化左边面板 */ diff --git a/designer_base/src/com/fr/design/gui/frpane/HyperlinkGroupPane.java b/designer_base/src/com/fr/design/gui/frpane/HyperlinkGroupPane.java index fcd9ba3833..e2932fbe65 100644 --- a/designer_base/src/com/fr/design/gui/frpane/HyperlinkGroupPane.java +++ b/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 list = new ArrayList(); if (nameHyperlink_array != null) {