Search in sources :

Example 1 with TableDynamicChartEventReceiver

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;
}
Also used : TableDynamicChartEventReceiver(org.talend.dataprofiler.core.ui.events.TableDynamicChartEventReceiver)

Example 2 with TableDynamicChartEventReceiver

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();
}
Also used : TableDynamicChartEventReceiver(org.talend.dataprofiler.core.ui.events.TableDynamicChartEventReceiver) DynamicIndicatorModel(org.talend.dataprofiler.core.model.dynamic.DynamicIndicatorModel) TableViewer(org.eclipse.jface.viewers.TableViewer) CompositeIndicator(org.talend.dataprofiler.core.ui.editor.preview.CompositeIndicator) Indicator(org.talend.dataquality.indicators.Indicator) TableIndicator(org.talend.dataprofiler.core.model.TableIndicator)

Aggregations

TableDynamicChartEventReceiver (org.talend.dataprofiler.core.ui.events.TableDynamicChartEventReceiver)2 TableViewer (org.eclipse.jface.viewers.TableViewer)1 TableIndicator (org.talend.dataprofiler.core.model.TableIndicator)1 DynamicIndicatorModel (org.talend.dataprofiler.core.model.dynamic.DynamicIndicatorModel)1 CompositeIndicator (org.talend.dataprofiler.core.ui.editor.preview.CompositeIndicator)1 Indicator (org.talend.dataquality.indicators.Indicator)1