Search in sources :

Example 6 with AbstractIndicatorForm

use of org.talend.dataprofiler.core.ui.wizard.indicator.forms.AbstractIndicatorForm in project tdq-studio-se by Talend.

the class DynamicIndicatorOptionsPage method createForm.

public AbstractIndicatorForm[] createForm(Composite parent, ICheckListener listener, FormEnum[] formTypes) {
    IndicatorParameters parameters = indicatorUnit.getIndicator().getParameters();
    if (parameters == null) {
        parameters = IndicatorsFactory.eINSTANCE.createIndicatorParameters();
        indicatorUnit.getIndicator().setParameters(parameters);
    }
    AbstractIndicatorForm[] froms = new AbstractIndicatorForm[formTypes.length];
    for (int i = 0; i < formTypes.length; i++) {
        AbstractIndicatorForm form = IndicatorFormFactory.createForm(parent, formTypes[i], parameters);
        form.setListener(listener);
        froms[i] = form;
    }
    return froms;
}
Also used : IndicatorParameters(org.talend.dataquality.indicators.IndicatorParameters) AbstractIndicatorForm(org.talend.dataprofiler.core.ui.wizard.indicator.forms.AbstractIndicatorForm)

Aggregations

AbstractIndicatorForm (org.talend.dataprofiler.core.ui.wizard.indicator.forms.AbstractIndicatorForm)6 SelectionAdapter (org.eclipse.swt.events.SelectionAdapter)2 SelectionEvent (org.eclipse.swt.events.SelectionEvent)2 FillLayout (org.eclipse.swt.layout.FillLayout)2 Composite (org.eclipse.swt.widgets.Composite)2 TabFolder (org.eclipse.swt.widgets.TabFolder)2 TabItem (org.eclipse.swt.widgets.TabItem)2 FormEnum (org.talend.dataprofiler.core.ui.wizard.indicator.forms.FormEnum)2 IndicatorParameters (org.talend.dataquality.indicators.IndicatorParameters)2