Browse Source

CHART-14346 悬浮窗图表组合图不允许选择单元格数据源

feature/big-screen
白岳 4 years ago
parent
commit
b44b3b3585
  1. 6
      designer-chart/src/main/java/com/fr/van/chart/custom/VanChartCustomPlotDataContentsTabPane.java

6
designer-chart/src/main/java/com/fr/van/chart/custom/VanChartCustomPlotDataContentsTabPane.java

@ -34,7 +34,9 @@ public class VanChartCustomPlotDataContentsTabPane extends VanChartCustomPlotTab
} }
public void setSupportCellData(boolean supportCellData) { public void setSupportCellData(boolean supportCellData) {
this.supportCellData = supportCellData; for (JPanel jPanel : paneList) {
((VanChartDataPane) jPanel).setSupportCellData(supportCellData);
}
} }
@Override @Override
@ -71,7 +73,6 @@ public class VanChartCustomPlotDataContentsTabPane extends VanChartCustomPlotTab
for (int i = 0; i < customPlotList.size(); i++) { for (int i = 0; i < customPlotList.size(); i++) {
//根据不同的plot创建不同的数据配置界面 //根据不同的plot创建不同的数据配置界面
ChartDataPane contentPane = new VanChartDataPane(listener); ChartDataPane contentPane = new VanChartDataPane(listener);
contentPane.setSupportCellData(supportCellData);
paneList.add(contentPane); paneList.add(contentPane);
} }
@ -180,6 +181,7 @@ public class VanChartCustomPlotDataContentsTabPane extends VanChartCustomPlotTab
/** /**
* 返回绑定的属性事件. * 返回绑定的属性事件.
*
* @param listener 增加监听 * @param listener 增加监听
*/ */
public void addAttributeChangeListener(AttributeChangeListener listener) { public void addAttributeChangeListener(AttributeChangeListener listener) {

Loading…
Cancel
Save