Browse Source

添加参数

master
mengao 7 years ago
parent
commit
d822ea7665
  1. 5
      designer_base/src/com/fr/design/hyperlink/AbstractHyperLinkPane.java
  2. 4
      designer_base/src/com/fr/design/hyperlink/ReportletHyperlinkPane.java
  3. 4
      designer_base/src/com/fr/design/hyperlink/WebHyperlinkPane.java
  4. 4
      designer_base/src/com/fr/design/javascript/JavaScriptImplPane.java
  5. 6
      designer_base/src/com/fr/design/javascript/ParameterJavaScriptPane.java
  6. 6
      designer_chart/src/com/fr/design/chart/series/SeriesCondition/impl/ChartHyperPoplinkPane.java
  7. 4
      designer_chart/src/com/fr/design/chart/series/SeriesCondition/impl/ChartHyperRelateCellLinkPane.java
  8. 4
      designer_chart/src/com/fr/design/chart/series/SeriesCondition/impl/ChartHyperRelateFloatLinkPane.java
  9. 4
      designer_chart/src/com/fr/design/chart/series/SeriesCondition/impl/FormHyperlinkPane.java
  10. 4
      designer_chart/src/com/fr/plugin/chart/custom/component/VanChartHyperLinkPane.java
  11. 4
      designer_chart/src/com/fr/plugin/chart/designer/component/ChartUIMenuNameableCreator.java

5
designer_base/src/com/fr/design/hyperlink/AbstractHyperLinkPane.java

@ -14,10 +14,11 @@ import java.util.HashMap;
*/ */
public abstract class AbstractHyperLinkPane<T> extends FurtherBasicBeanPane<T> { public abstract class AbstractHyperLinkPane<T> extends FurtherBasicBeanPane<T> {
private HashMap hyperLinkEditorMap; private HashMap hyperLinkEditorMap;
private boolean needRenamePane = false;
protected ReportletParameterViewPane parameterViewPane; protected ReportletParameterViewPane parameterViewPane;
public AbstractHyperLinkPane(HashMap hyperLinkEditorMap) { public AbstractHyperLinkPane(HashMap hyperLinkEditorMap, boolean needRenamePane) {
this.hyperLinkEditorMap = hyperLinkEditorMap; this.hyperLinkEditorMap = hyperLinkEditorMap;
} }
@ -47,7 +48,7 @@ public abstract class AbstractHyperLinkPane<T> extends FurtherBasicBeanPane<T> {
} }
protected boolean needRenamePane(){ protected boolean needRenamePane(){
return false; return needRenamePane;
} }
} }

4
designer_base/src/com/fr/design/hyperlink/ReportletHyperlinkPane.java

@ -25,8 +25,8 @@ public class ReportletHyperlinkPane extends AbstractHyperLinkPane<ReportletHyper
private ReporletHyperNorthPane northPane; private ReporletHyperNorthPane northPane;
private UICheckBox extendParametersCheckBox; private UICheckBox extendParametersCheckBox;
public ReportletHyperlinkPane(HashMap hyperLinkEditorMap) { public ReportletHyperlinkPane(HashMap hyperLinkEditorMap, boolean needRenamePane) {
super(hyperLinkEditorMap); super(hyperLinkEditorMap, needRenamePane);
this.initComponents(); this.initComponents();
} }

4
designer_base/src/com/fr/design/hyperlink/WebHyperlinkPane.java

@ -27,8 +27,8 @@ public class WebHyperlinkPane extends AbstractHyperLinkPane<WebHyperlink> {
this.initComponents(); this.initComponents();
} }
public WebHyperlinkPane(HashMap hyperLinkEditorMap) { public WebHyperlinkPane(HashMap hyperLinkEditorMap, boolean needRenamePane) {
super(hyperLinkEditorMap); super(hyperLinkEditorMap, needRenamePane);
this.initComponents(); this.initComponents();
} }

4
designer_base/src/com/fr/design/javascript/JavaScriptImplPane.java

@ -36,8 +36,8 @@ public class JavaScriptImplPane extends AbstractHyperLinkPane<JavaScriptImpl> {
this(new String[0]); this(new String[0]);
} }
public JavaScriptImplPane(HashMap hyperLinkEditorMap) { public JavaScriptImplPane(HashMap hyperLinkEditorMap, boolean needRenamePane) {
super(hyperLinkEditorMap); super(hyperLinkEditorMap, needRenamePane);
this.defaultArgs = new String[0]; this.defaultArgs = new String[0];
initComponents(); initComponents();
} }

6
designer_base/src/com/fr/design/javascript/ParameterJavaScriptPane.java

@ -19,11 +19,11 @@ public class ParameterJavaScriptPane extends AbstractHyperLinkPane<ParameterJava
public ParameterJavaScriptPane(){ public ParameterJavaScriptPane(){
this(null); this(null, false);
} }
public ParameterJavaScriptPane(HashMap hyperLinkEditorMap){ public ParameterJavaScriptPane(HashMap hyperLinkEditorMap, boolean needRenamePane){
super(hyperLinkEditorMap); super(hyperLinkEditorMap, needRenamePane);
this.setLayout(new BorderLayout()); this.setLayout(new BorderLayout());
parameterViewPane = new ReportletParameterViewPane(getChartParaType(), getValueEditorPane(), getValueEditorPane()); parameterViewPane = new ReportletParameterViewPane(getChartParaType(), getValueEditorPane(), getValueEditorPane());
this.add(parameterViewPane, BorderLayout.CENTER); this.add(parameterViewPane, BorderLayout.CENTER);

6
designer_chart/src/com/fr/design/chart/series/SeriesCondition/impl/ChartHyperPoplinkPane.java

@ -34,11 +34,11 @@ public class ChartHyperPoplinkPane extends AbstractHyperLinkPane<ChartHyperPopli
public ChartHyperPoplinkPane() { public ChartHyperPoplinkPane() {
this(null); this(null, false);
} }
public ChartHyperPoplinkPane(HashMap hyperLinkEditorMap) { public ChartHyperPoplinkPane(HashMap hyperLinkEditorMap, boolean needRenamePane) {
super(hyperLinkEditorMap); super(hyperLinkEditorMap, needRenamePane);
this.setLayout(FRGUIPaneFactory.createM_BorderLayout()); this.setLayout(FRGUIPaneFactory.createM_BorderLayout());
if(this.needRenamePane()){ if(this.needRenamePane()){

4
designer_chart/src/com/fr/design/chart/series/SeriesCondition/impl/ChartHyperRelateCellLinkPane.java

@ -33,8 +33,8 @@ public class ChartHyperRelateCellLinkPane extends AbstractHyperLinkPane<ChartHyp
this.initComponent(); this.initComponent();
} }
public ChartHyperRelateCellLinkPane(HashMap hyperLinkEditorMap) { public ChartHyperRelateCellLinkPane(HashMap hyperLinkEditorMap, boolean needRenamePane) {
super(hyperLinkEditorMap); super(hyperLinkEditorMap, needRenamePane);
this.initComponent(); this.initComponent();
} }

4
designer_chart/src/com/fr/design/chart/series/SeriesCondition/impl/ChartHyperRelateFloatLinkPane.java

@ -38,8 +38,8 @@ public class ChartHyperRelateFloatLinkPane extends AbstractHyperLinkPane<ChartHy
this.initComponent(); this.initComponent();
} }
public ChartHyperRelateFloatLinkPane(HashMap hyperLinkEditorMap) { public ChartHyperRelateFloatLinkPane(HashMap hyperLinkEditorMap, boolean needRenamePane) {
super(hyperLinkEditorMap); super(hyperLinkEditorMap, needRenamePane);
this.initComponent(); this.initComponent();
} }

4
designer_chart/src/com/fr/design/chart/series/SeriesCondition/impl/FormHyperlinkPane.java

@ -21,8 +21,8 @@ public class FormHyperlinkPane extends AbstractHyperLinkPane<FormHyperlinkProvid
private FormHyperlinkNorthPane northPane; private FormHyperlinkNorthPane northPane;
public FormHyperlinkPane(HashMap hyperLinkEditorMap) { public FormHyperlinkPane(HashMap hyperLinkEditorMap, boolean needRenamePane) {
super(hyperLinkEditorMap); super(hyperLinkEditorMap, needRenamePane);
this.initComponents(); this.initComponents();
} }

4
designer_chart/src/com/fr/plugin/chart/custom/component/VanChartHyperLinkPane.java

@ -75,8 +75,8 @@ public class VanChartHyperLinkPane extends VanChartUIListControlPane {
protected BasicBeanPane createPaneByCreators(NameableCreator creator) { protected BasicBeanPane createPaneByCreators(NameableCreator creator) {
Constructor<? extends BasicBeanPane> constructor = null; Constructor<? extends BasicBeanPane> constructor = null;
try { try {
constructor = creator.getUpdatePane().getConstructor(HashMap.class); constructor = creator.getUpdatePane().getConstructor(HashMap.class, boolean.class);
return constructor.newInstance(plot.getHyperLinkEditorMap()); return constructor.newInstance(plot.getHyperLinkEditorMap(), false);
} catch (InstantiationException e) { } catch (InstantiationException e) {
throw new RuntimeException(e); throw new RuntimeException(e);

4
designer_chart/src/com/fr/plugin/chart/designer/component/ChartUIMenuNameableCreator.java

@ -35,8 +35,8 @@ public class ChartUIMenuNameableCreator extends UIMenuNameableCreator {
public BasicBeanPane getPane() { public BasicBeanPane getPane() {
try { try {
if (hyperLinkEditorMap != null) { if (hyperLinkEditorMap != null) {
Constructor<? extends BasicBeanPane> constructor = paneClazz.getConstructor(Plot.class); Constructor<? extends BasicBeanPane> constructor = paneClazz.getConstructor(HashMap.class, boolean.class);
return constructor.newInstance(hyperLinkEditorMap); return constructor.newInstance(hyperLinkEditorMap,true);
} }
} catch (Exception e) { } catch (Exception e) {
return super.getPane(); return super.getPane();

Loading…
Cancel
Save