Browse Source

update

research/10.0
zheng 6 years ago
parent
commit
4b357edbc8
  1. 7
      designer-chart/src/main/java/com/fr/design/chartx/component/AbstractCorrelationPane.java
  2. 2
      designer-chart/src/main/java/com/fr/design/chartx/component/CellDataSeriesValueFieldsPane.java

7
designer-chart/src/main/java/com/fr/design/chartx/component/AbstractChartDataCorrelationPane.java → designer-chart/src/main/java/com/fr/design/chartx/component/AbstractCorrelationPane.java

@ -14,13 +14,14 @@ import java.util.List;
/**
* Created by shine on 2019/6/4.
* 自定义editorComponent + 支持多种数据格式
*/
public abstract class AbstractChartDataCorrelationPane<T> extends BasicBeanPane<T> {
public abstract class AbstractCorrelationPane<T> extends BasicBeanPane<T> {
private FieldEditorComponentWrapper[] editorComponents;
private UICorrelationPane correlationPane;
public AbstractChartDataCorrelationPane() {
public AbstractCorrelationPane() {
this.editorComponents = fieldEditorComponentWrappers();
@ -88,7 +89,7 @@ public abstract class AbstractChartDataCorrelationPane<T> extends BasicBeanPane<
correlationPane.stopCellEditing();
currentEditorWrapper = AbstractChartDataCorrelationPane.this.editorComponents[column];
currentEditorWrapper = AbstractCorrelationPane.this.editorComponents[column];
currentComponent = currentEditorWrapper.createEditorComponent(correlationPane);
currentEditorWrapper.setValue(currentComponent, value);

2
designer-chart/src/main/java/com/fr/design/chartx/component/CellDataSeriesValueFieldsPane.java

@ -12,7 +12,7 @@ import java.util.List;
/**
* Created by shine on 2019/6/4.
*/
public class CellDataSeriesValueFieldsPane extends AbstractChartDataCorrelationPane<SeriesValueColumnFields> {
public class CellDataSeriesValueFieldsPane extends AbstractCorrelationPane<SeriesValueColumnFields> {
@Override
protected FieldEditorComponentWrapper[] fieldEditorComponentWrappers() {

Loading…
Cancel
Save