Browse Source

CHART-2912 数据面板自定义(数据集数据不用下拉框&单元格数据不用公式输入框)。

final/10.0
zheng 6 years ago
parent
commit
26504d4b45
  1. 6
      designer-chart/src/main/java/com/fr/extended/chart/AbstractExtendedChartReportDataPane.java

6
designer-chart/src/main/java/com/fr/extended/chart/AbstractExtendedChartReportDataPane.java

@ -26,7 +26,7 @@ public abstract class AbstractExtendedChartReportDataPane<T extends AbstractData
protected void initComponents() {
String[] labels = fieldLabel();
TinyFormulaPane[] formulaPanes = formulaPanes();
Component[] formulaPanes = fieldComponents();
int len = Math.min(labels.length, formulaPanes.length);
@ -49,6 +49,10 @@ public abstract class AbstractExtendedChartReportDataPane<T extends AbstractData
this.add(panel, BorderLayout.CENTER);
}
protected Component[] fieldComponents() {
return formulaPanes();
}
protected abstract String[] fieldLabel();
protected abstract TinyFormulaPane[] formulaPanes();

Loading…
Cancel
Save