|
|
@ -6,6 +6,7 @@ import com.fr.chart.web.ChartHyperPoplink; |
|
|
|
import com.fr.chart.web.ChartHyperRelateCellLink; |
|
|
|
import com.fr.chart.web.ChartHyperRelateCellLink; |
|
|
|
import com.fr.chart.web.ChartHyperRelateFloatLink; |
|
|
|
import com.fr.chart.web.ChartHyperRelateFloatLink; |
|
|
|
import com.fr.design.ExtraDesignClassManager; |
|
|
|
import com.fr.design.ExtraDesignClassManager; |
|
|
|
|
|
|
|
import com.fr.design.base.mode.DesignModeContext; |
|
|
|
import com.fr.design.beans.BasicBeanPane; |
|
|
|
import com.fr.design.beans.BasicBeanPane; |
|
|
|
import com.fr.design.chart.javascript.ChartEmailPane; |
|
|
|
import com.fr.design.chart.javascript.ChartEmailPane; |
|
|
|
import com.fr.design.chart.series.SeriesCondition.impl.ChartHyperPoplinkPane; |
|
|
|
import com.fr.design.chart.series.SeriesCondition.impl.ChartHyperPoplinkPane; |
|
|
@ -78,14 +79,11 @@ public class VanChartHyperLinkPane extends VanChartUIListControlPane { |
|
|
|
constructor = creator.getUpdatePane().getConstructor(HashMap.class, boolean.class); |
|
|
|
constructor = creator.getUpdatePane().getConstructor(HashMap.class, boolean.class); |
|
|
|
return constructor.newInstance(getHyperLinkEditorMap(), false); |
|
|
|
return constructor.newInstance(getHyperLinkEditorMap(), false); |
|
|
|
|
|
|
|
|
|
|
|
} catch (InstantiationException e) { |
|
|
|
} catch (InstantiationException | IllegalAccessException | InvocationTargetException e) { |
|
|
|
FineLoggerFactory.getLogger().error(e.getMessage(), e); |
|
|
|
|
|
|
|
} catch (IllegalAccessException e) { |
|
|
|
|
|
|
|
FineLoggerFactory.getLogger().error(e.getMessage(), e); |
|
|
|
FineLoggerFactory.getLogger().error(e.getMessage(), e); |
|
|
|
} catch (NoSuchMethodException e) { |
|
|
|
} catch (NoSuchMethodException e) { |
|
|
|
|
|
|
|
FineLoggerFactory.getLogger().warn(e.getMessage(), e); |
|
|
|
return super.createPaneByCreators(creator); |
|
|
|
return super.createPaneByCreators(creator); |
|
|
|
} catch (InvocationTargetException e) { |
|
|
|
|
|
|
|
FineLoggerFactory.getLogger().error(e.getMessage(), e); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
return null; |
|
|
|
return null; |
|
|
|
} |
|
|
|
} |
|
|
@ -144,9 +142,11 @@ public class VanChartHyperLinkPane extends VanChartUIListControlPane { |
|
|
|
return new NameJavaScriptGroup(res_array); |
|
|
|
return new NameJavaScriptGroup(res_array); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public void populate(Plot plot) { |
|
|
|
private void refreshNameableCreator() { |
|
|
|
setPlot(plot); |
|
|
|
if (DesignModeContext.isDuchampMode()) { |
|
|
|
HashMap paneMap = getHyperlinkMap(plot); |
|
|
|
return; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
HashMap paneMap = getHyperlinkMap(); |
|
|
|
|
|
|
|
|
|
|
|
//安装平台内打开插件时,添加相应按钮
|
|
|
|
//安装平台内打开插件时,添加相应按钮
|
|
|
|
Set<HyperlinkProvider> providers = ExtraDesignClassManager.getInstance().getArray(HyperlinkProvider.XML_TAG); |
|
|
|
Set<HyperlinkProvider> providers = ExtraDesignClassManager.getInstance().getArray(HyperlinkProvider.XML_TAG); |
|
|
@ -166,6 +166,12 @@ public class VanChartHyperLinkPane extends VanChartUIListControlPane { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
refreshNameableCreator(creators); |
|
|
|
refreshNameableCreator(creators); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public void populate(Plot plot) { |
|
|
|
|
|
|
|
setPlot(plot); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
refreshNameableCreator(); |
|
|
|
|
|
|
|
|
|
|
|
java.util.List<NameObject> nameObjects = new ArrayList<NameObject>(); |
|
|
|
java.util.List<NameObject> nameObjects = new ArrayList<NameObject>(); |
|
|
|
|
|
|
|
|
|
|
@ -174,8 +180,7 @@ public class VanChartHyperLinkPane extends VanChartUIListControlPane { |
|
|
|
NameJavaScript javaScript = nameGroup.getNameHyperlink(i); |
|
|
|
NameJavaScript javaScript = nameGroup.getNameHyperlink(i); |
|
|
|
if (javaScript != null && javaScript.getJavaScript() != null) { |
|
|
|
if (javaScript != null && javaScript.getJavaScript() != null) { |
|
|
|
JavaScript script = javaScript.getJavaScript(); |
|
|
|
JavaScript script = javaScript.getJavaScript(); |
|
|
|
UIMenuNameableCreator uiMenuNameableCreator = new UIMenuNameableCreator(javaScript.getName(), script, getUseMap(paneMap, script.getClass())); |
|
|
|
nameObjects.add(new NameObject(javaScript.getName(), script)); |
|
|
|
nameObjects.add(new NameObject(uiMenuNameableCreator.getName(), uiMenuNameableCreator.getObj())); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@ -188,7 +193,7 @@ public class VanChartHyperLinkPane extends VanChartUIListControlPane { |
|
|
|
return plot.getHotHyperLink(); |
|
|
|
return plot.getHotHyperLink(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
protected HashMap getHyperlinkMap(Plot plot) { |
|
|
|
protected HashMap getHyperlinkMap() { |
|
|
|
HashMap<Class, Class> map = new HashMap<Class, Class>(); |
|
|
|
HashMap<Class, Class> map = new HashMap<Class, Class>(); |
|
|
|
|
|
|
|
|
|
|
|
map.put(ReportletHyperlink.class, ReportletHyperlinkPane.class); |
|
|
|
map.put(ReportletHyperlink.class, ReportletHyperlinkPane.class); |
|
|
|