Browse Source

Merge pull request #8192 in DESIGN/design from feature/10.0 to feature/big-screen

* commit 'c21e86584912b0041c59034011c258f0cb67aedb':
  CHART-22972 HyperlinkProvider接口对图表超链不起作用
feature/big-screen
superman 3 years ago
parent
commit
3e63d22c64
  1. 15
      designer-chart/src/main/java/com/fr/van/chart/custom/component/VanChartHyperLinkPane.java

15
designer-chart/src/main/java/com/fr/van/chart/custom/component/VanChartHyperLinkPane.java

@ -150,17 +150,16 @@ public class VanChartHyperLinkPane extends VanChartUIListControlPane {
//安装平台内打开插件时,添加相应按钮
Set<HyperlinkProvider> providers = ExtraDesignClassManager.getInstance().getArray(HyperlinkProvider.XML_TAG);
for (HyperlinkProvider provider : providers) {
NameableCreator nc = provider.createHyperlinkCreator();
paneMap.put(nc.getHyperlink(), nc.getUpdatePane());
}
java.util.List<UIMenuNameableCreator> list = refreshList(paneMap);
NameObjectCreator[] creators = new NameObjectCreator[list.size()];
for (int i = 0; list != null && i < list.size(); i++) {
int size = list.size();
NameObjectCreator[] creators = new NameObjectCreator[list.size() + providers.size()];
for (int i = 0; i < size; i++) {
UIMenuNameableCreator uiMenuNameableCreator = list.get(i);
creators[i] = new NameObjectCreator(uiMenuNameableCreator.getName(), uiMenuNameableCreator.getObj().getClass(), uiMenuNameableCreator.getPaneClazz());
}
for (HyperlinkProvider provider : providers) {
creators[size] = new NameObjectCreator(provider.text(), provider.target(), provider.appearance());
size++;
}
refreshNameableCreator(creators);

Loading…
Cancel
Save