|
|
|
@ -1,7 +1,6 @@
|
|
|
|
|
package com.fr.design.chartx.single; |
|
|
|
|
|
|
|
|
|
import com.fr.chartx.data.DataSetDefinition; |
|
|
|
|
import com.fr.chartx.data.field.AbstractColumnFieldCollection; |
|
|
|
|
import com.fr.data.impl.NameTableData; |
|
|
|
|
import com.fr.design.beans.FurtherBasicBeanPane; |
|
|
|
|
import com.fr.design.chartx.fields.AbstractDataSetFieldsPane; |
|
|
|
@ -12,7 +11,6 @@ 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.log.FineLoggerFactory; |
|
|
|
|
import com.fr.stable.AssistUtils; |
|
|
|
|
|
|
|
|
|
import java.awt.BorderLayout; |
|
|
|
@ -105,16 +103,10 @@ public class DataSetPane extends FurtherBasicBeanPane<DataSetDefinition> {
|
|
|
|
|
refreshBoxList(); |
|
|
|
|
checkBoxUse(); |
|
|
|
|
|
|
|
|
|
try { |
|
|
|
|
Type dataType = ((ParameterizedType) dataSetFieldsPane.getClass().getGenericSuperclass()).getActualTypeArguments()[0]; |
|
|
|
|
if (ob.getColumnFieldCollection() != null && !AssistUtils.equals(ob.getColumnFieldCollection().getClass(), dataType)) { |
|
|
|
|
Object fieldCollection = Class.forName(((Class) dataType).getName()).newInstance(); |
|
|
|
|
ob.setColumnFieldCollection((AbstractColumnFieldCollection) fieldCollection); |
|
|
|
|
} |
|
|
|
|
tableDataPane.populateBean(ob.getNameTableData()); |
|
|
|
|
tableDataPane.populateBean(ob.getNameTableData()); |
|
|
|
|
Type dataType = ((ParameterizedType) dataSetFieldsPane.getClass().getGenericSuperclass()).getActualTypeArguments()[0]; |
|
|
|
|
if (AssistUtils.equals(ob.getColumnFieldCollection().getClass(), dataType)) { |
|
|
|
|
dataSetFieldsPane.populateBean(ob.getColumnFieldCollection()); |
|
|
|
|
} catch (Exception e) { |
|
|
|
|
FineLoggerFactory.getLogger().error(e.getMessage(), e); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|