use of org.talend.dataprofiler.core.ui.events.TableDynamicChartEventReceiver in project tdq-studio-se by Talend.
the class BusinessRuleAnalysisDetailsPage method createEventReceiver.
@Override
protected DynamicChartEventReceiver createEventReceiver(DynamicIndicatorModel indModel, int index, Indicator oneIndicator) {
TableDynamicChartEventReceiver eReceiver = new TableDynamicChartEventReceiver();
eReceiver.setDataset(indModel.getDataset());
eReceiver.setIndexInDataset(index);
eReceiver.setIndicatorName(oneIndicator.getName());
eReceiver.setIndicator(oneIndicator);
eReceiver.setIndicatorType(IndicatorEnum.findIndicatorEnum(oneIndicator.eClass()));
// clear data
eReceiver.clearValue();
return eReceiver;
}
use of org.talend.dataprofiler.core.ui.events.TableDynamicChartEventReceiver in project tdq-studio-se by Talend.
the class BusinessRuleAnalysisResultPage method registerDynamicEvent.
/**
* Added TDQ-8787 20140613 yyin: create all charts before running, register each chart with its related indicator.
*/
public void registerDynamicEvent() {
// register dynamic event,for the indicator (for each column)
for (DynamicIndicatorModel oneCategoryIndicatorModel : dynamicList) {
Object categoryDataset = oneCategoryIndicatorModel.getDataset();
TableViewer tableViewer = oneCategoryIndicatorModel.getTableViewer();
int index = 0;
for (Indicator oneIndicator : oneCategoryIndicatorModel.getIndicatorList()) {
TableDynamicChartEventReceiver eReceiver = new TableDynamicChartEventReceiver();
eReceiver.setDataset(categoryDataset);
eReceiver.setIndexInDataset(index++);
eReceiver.setIndicatorName(oneIndicator.getName());
eReceiver.setIndicator(oneIndicator);
eReceiver.setIndicatorType(IndicatorEnum.findIndicatorEnum(oneIndicator.eClass()));
eReceiver.setChartComposite(sectionClient);
eReceiver.setTableViewer(tableViewer);
// clear data
eReceiver.clearValue();
registerIndicatorEvent(oneIndicator, eReceiver);
}
}
reLayoutChartComposite();
registerRefreshDynamicChartEvent();
}
Aggregations