From c9f5f9762aaded8020852ff3b2465fcc36a38870 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=99=BD=E5=B2=B3?= <445798420@qq.com> Date: Fri, 29 Nov 2019 15:51:09 +0800 Subject: [PATCH] =?UTF-8?q?CHART-11810=20=E7=B1=BB=E5=9E=8B=E5=88=87?= =?UTF-8?q?=E6=8D=A2=E6=97=B6=E5=AF=B9=E6=95=B0=E6=8D=AE=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E7=9A=84=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/fr/design/chartx/AbstractChartDataPane.java | 6 ++---- .../java/com/fr/design/chartx/single/CellDataPane.java | 8 +------- .../java/com/fr/design/chartx/single/DataSetPane.java | 8 +------- .../van/chart/designer/type/AbstractVanChartTypePane.java | 4 ++++ 4 files changed, 8 insertions(+), 18 deletions(-) diff --git a/designer-chart/src/main/java/com/fr/design/chartx/AbstractChartDataPane.java b/designer-chart/src/main/java/com/fr/design/chartx/AbstractChartDataPane.java index 04412c0a5a..c7893ae240 100644 --- a/designer-chart/src/main/java/com/fr/design/chartx/AbstractChartDataPane.java +++ b/designer-chart/src/main/java/com/fr/design/chartx/AbstractChartDataPane.java @@ -7,9 +7,9 @@ import com.fr.design.mainframe.chart.gui.ChartDataPane; import com.fr.plugin.chart.vanchart.VanChart; import com.fr.stable.AssistUtils; -import java.awt.BorderLayout; import java.lang.reflect.ParameterizedType; import java.lang.reflect.Type; +import java.awt.BorderLayout; /** * Created by shine on 2019/4/15. @@ -45,9 +45,7 @@ public abstract class AbstractChartDataPane { return; } - Type dataType = ((ParameterizedType) cellDataFieldsPane.getClass().getGenericSuperclass()).getActualTypeArguments()[0]; - if (AssistUtils.equals(ob.getColumnFieldCollection().getClass(), dataType)) { - cellDataFieldsPane.populateBean(ob.getColumnFieldCollection()); - } + cellDataFieldsPane.populateBean(ob.getColumnFieldCollection()); } @Override diff --git a/designer-chart/src/main/java/com/fr/design/chartx/single/DataSetPane.java b/designer-chart/src/main/java/com/fr/design/chartx/single/DataSetPane.java index 491c7cae46..3242e48646 100644 --- a/designer-chart/src/main/java/com/fr/design/chartx/single/DataSetPane.java +++ b/designer-chart/src/main/java/com/fr/design/chartx/single/DataSetPane.java @@ -11,10 +11,7 @@ import com.fr.design.i18n.Toolkit; import com.fr.design.mainframe.chart.gui.ChartDataPane; import com.fr.design.mainframe.chart.gui.data.DatabaseTableDataPane; import com.fr.design.utils.gui.UIComponentUtils; -import com.fr.stable.AssistUtils; -import java.lang.reflect.ParameterizedType; -import java.lang.reflect.Type; import java.util.List; import java.awt.BorderLayout; import java.awt.Dimension; @@ -109,11 +106,8 @@ public class DataSetPane extends FurtherBasicBeanPane { checkBoxUse(); tableDataPane.populateBean(ob.getNameTableData()); - Type dataType = ((ParameterizedType) dataSetFieldsPane.getClass().getGenericSuperclass()).getActualTypeArguments()[0]; - if (AssistUtils.equals(ob.getColumnFieldCollection().getClass(), dataType)) { - dataSetFieldsPane.populateBean(ob.getColumnFieldCollection()); - } + dataSetFieldsPane.populateBean(ob.getColumnFieldCollection()); } @Override diff --git a/designer-chart/src/main/java/com/fr/van/chart/designer/type/AbstractVanChartTypePane.java b/designer-chart/src/main/java/com/fr/van/chart/designer/type/AbstractVanChartTypePane.java index deb285fc7f..eb82cd9ed9 100644 --- a/designer-chart/src/main/java/com/fr/van/chart/designer/type/AbstractVanChartTypePane.java +++ b/designer-chart/src/main/java/com/fr/van/chart/designer/type/AbstractVanChartTypePane.java @@ -107,6 +107,10 @@ public abstract class AbstractVanChartTypePane extends AbstractChartTypePane