From d822ea7665a15fcb98a72d4f044aab23df1a42ec Mon Sep 17 00:00:00 2001 From: mengao <283296419@qq.com> Date: Thu, 12 Oct 2017 13:48:20 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/com/fr/design/hyperlink/AbstractHyperLinkPane.java | 5 +++-- .../src/com/fr/design/hyperlink/ReportletHyperlinkPane.java | 4 ++-- .../src/com/fr/design/hyperlink/WebHyperlinkPane.java | 4 ++-- .../src/com/fr/design/javascript/JavaScriptImplPane.java | 4 ++-- .../com/fr/design/javascript/ParameterJavaScriptPane.java | 6 +++--- .../series/SeriesCondition/impl/ChartHyperPoplinkPane.java | 6 +++--- .../SeriesCondition/impl/ChartHyperRelateCellLinkPane.java | 4 ++-- .../SeriesCondition/impl/ChartHyperRelateFloatLinkPane.java | 4 ++-- .../series/SeriesCondition/impl/FormHyperlinkPane.java | 4 ++-- .../chart/custom/component/VanChartHyperLinkPane.java | 4 ++-- .../designer/component/ChartUIMenuNameableCreator.java | 4 ++-- 11 files changed, 25 insertions(+), 24 deletions(-) diff --git a/designer_base/src/com/fr/design/hyperlink/AbstractHyperLinkPane.java b/designer_base/src/com/fr/design/hyperlink/AbstractHyperLinkPane.java index 8629c60d48..5ed04136c9 100644 --- a/designer_base/src/com/fr/design/hyperlink/AbstractHyperLinkPane.java +++ b/designer_base/src/com/fr/design/hyperlink/AbstractHyperLinkPane.java @@ -14,10 +14,11 @@ import java.util.HashMap; */ public abstract class AbstractHyperLinkPane extends FurtherBasicBeanPane { private HashMap hyperLinkEditorMap; + private boolean needRenamePane = false; protected ReportletParameterViewPane parameterViewPane; - public AbstractHyperLinkPane(HashMap hyperLinkEditorMap) { + public AbstractHyperLinkPane(HashMap hyperLinkEditorMap, boolean needRenamePane) { this.hyperLinkEditorMap = hyperLinkEditorMap; } @@ -47,7 +48,7 @@ public abstract class AbstractHyperLinkPane extends FurtherBasicBeanPane { } protected boolean needRenamePane(){ - return false; + return needRenamePane; } } diff --git a/designer_base/src/com/fr/design/hyperlink/ReportletHyperlinkPane.java b/designer_base/src/com/fr/design/hyperlink/ReportletHyperlinkPane.java index 51d8069ec7..24fac1482f 100644 --- a/designer_base/src/com/fr/design/hyperlink/ReportletHyperlinkPane.java +++ b/designer_base/src/com/fr/design/hyperlink/ReportletHyperlinkPane.java @@ -25,8 +25,8 @@ public class ReportletHyperlinkPane extends AbstractHyperLinkPane { this.initComponents(); } - public WebHyperlinkPane(HashMap hyperLinkEditorMap) { - super(hyperLinkEditorMap); + public WebHyperlinkPane(HashMap hyperLinkEditorMap, boolean needRenamePane) { + super(hyperLinkEditorMap, needRenamePane); this.initComponents(); } diff --git a/designer_base/src/com/fr/design/javascript/JavaScriptImplPane.java b/designer_base/src/com/fr/design/javascript/JavaScriptImplPane.java index 31ef732547..a449c89de1 100644 --- a/designer_base/src/com/fr/design/javascript/JavaScriptImplPane.java +++ b/designer_base/src/com/fr/design/javascript/JavaScriptImplPane.java @@ -36,8 +36,8 @@ public class JavaScriptImplPane extends AbstractHyperLinkPane { this(new String[0]); } - public JavaScriptImplPane(HashMap hyperLinkEditorMap) { - super(hyperLinkEditorMap); + public JavaScriptImplPane(HashMap hyperLinkEditorMap, boolean needRenamePane) { + super(hyperLinkEditorMap, needRenamePane); this.defaultArgs = new String[0]; initComponents(); } diff --git a/designer_base/src/com/fr/design/javascript/ParameterJavaScriptPane.java b/designer_base/src/com/fr/design/javascript/ParameterJavaScriptPane.java index fda398d499..bc07199ba2 100644 --- a/designer_base/src/com/fr/design/javascript/ParameterJavaScriptPane.java +++ b/designer_base/src/com/fr/design/javascript/ParameterJavaScriptPane.java @@ -19,11 +19,11 @@ public class ParameterJavaScriptPane extends AbstractHyperLinkPane constructor = null; try { - constructor = creator.getUpdatePane().getConstructor(HashMap.class); - return constructor.newInstance(plot.getHyperLinkEditorMap()); + constructor = creator.getUpdatePane().getConstructor(HashMap.class, boolean.class); + return constructor.newInstance(plot.getHyperLinkEditorMap(), false); } catch (InstantiationException e) { throw new RuntimeException(e); diff --git a/designer_chart/src/com/fr/plugin/chart/designer/component/ChartUIMenuNameableCreator.java b/designer_chart/src/com/fr/plugin/chart/designer/component/ChartUIMenuNameableCreator.java index 828fbaf1ff..3007f31e63 100644 --- a/designer_chart/src/com/fr/plugin/chart/designer/component/ChartUIMenuNameableCreator.java +++ b/designer_chart/src/com/fr/plugin/chart/designer/component/ChartUIMenuNameableCreator.java @@ -35,8 +35,8 @@ public class ChartUIMenuNameableCreator extends UIMenuNameableCreator { public BasicBeanPane getPane() { try { if (hyperLinkEditorMap != null) { - Constructor constructor = paneClazz.getConstructor(Plot.class); - return constructor.newInstance(hyperLinkEditorMap); + Constructor constructor = paneClazz.getConstructor(HashMap.class, boolean.class); + return constructor.newInstance(hyperLinkEditorMap,true); } } catch (Exception e) { return super.getPane();