Search in sources :

Example 36 with Form

use of org.talend.daikon.properties.presentation.Form in project components by Talend.

the class TestFormatProperties2Impl method setupLayout.

public void setupLayout() {
    super.setupLayout();
    Form mainForm = Form.create(this, Form.MAIN);
    mainForm.addRow(someOtherProperty);
}
Also used : Form(org.talend.daikon.properties.presentation.Form)

Example 37 with Form

use of org.talend.daikon.properties.presentation.Form in project components by Talend.

the class FullExampleProperties method setupLayout.

@Override
public void setupLayout() {
    super.setupLayout();
    Form mainForm = new Form(this, Form.MAIN);
    mainForm.addRow(stringProp);
    mainForm.addRow(widget(schema).setWidgetType(Widget.SCHEMA_EDITOR_WIDGET_TYPE));
    mainForm.addRow(widget(schema).setWidgetType(Widget.SCHEMA_REFERENCE_WIDGET_TYPE));
    mainForm.addRow(widget(datastoreRef).setWidgetType(COMPONENT_REFERENCE_WIDGET_TYPE));
    mainForm.addRow(widget(multipleSelectionProp).setWidgetType(Widget.NAME_SELECTION_AREA_WIDGET_TYPE));
    mainForm.addRow(widget(multipleSelectionProp).setWidgetType(Widget.NAME_SELECTION_REFERENCE_WIDGET_TYPE));
    mainForm.addRow(widget(showNewForm).setWidgetType(Widget.BUTTON_WIDGET_TYPE));
    Form popUpForm = new Form(this, POPUP_FORM_NAME);
    showNewForm.setFormtoShow(popUpForm);
    mainForm.addColumn(widget(tableProp).setWidgetType(Widget.TABLE_WIDGET_TYPE));
    mainForm.addColumn(widget(hiddenTextProp).setWidgetType(Widget.HIDDEN_TEXT_WIDGET_TYPE));
    mainForm.addColumn(widget(filepathProp).setWidgetType(Widget.FILE_WIDGET_TYPE));
}
Also used : Form(org.talend.daikon.properties.presentation.Form)

Example 38 with Form

use of org.talend.daikon.properties.presentation.Form in project components by Talend.

the class TAzureStorageOutputTableProperties method setupLayout.

@Override
public void setupLayout() {
    super.setupLayout();
    Form mainForm = getForm(Form.MAIN);
    mainForm.addColumn(Widget.widget(partitionKey).setWidgetType(Widget.ENUMERATION_WIDGET_TYPE));
    mainForm.addColumn(Widget.widget(rowKey).setWidgetType(Widget.ENUMERATION_WIDGET_TYPE));
    mainForm.addRow(actionOnData);
    mainForm.addColumn(actionOnTable);
    mainForm.addRow(processOperationInBatch);
    mainForm.addRow(dieOnError);
}
Also used : Form(org.talend.daikon.properties.presentation.Form)

Example 39 with Form

use of org.talend.daikon.properties.presentation.Form in project components by Talend.

the class TMarketoBulkExecProperties method setupLayout.

@Override
public void setupLayout() {
    super.setupLayout();
    Form mainForm = getForm(Form.MAIN);
    mainForm.addRow(bulkImportTo);
    mainForm.addColumn(bulkFileFormat);
    mainForm.addRow(lookupField);
    mainForm.addColumn(listId);
    mainForm.addColumn(partitionName);
    mainForm.addRow(customObjectName);
    mainForm.addRow(widget(bulkFilePath).setWidgetType(Widget.FILE_WIDGET_TYPE));
    mainForm.addRow(pollWaitTime);
    mainForm.addRow(widget(logDownloadPath).setWidgetType(Widget.DIRECTORY_WIDGET_TYPE));
    mainForm.addRow(dieOnError);
}
Also used : Form(org.talend.daikon.properties.presentation.Form)

Example 40 with Form

use of org.talend.daikon.properties.presentation.Form in project components by Talend.

the class TMarketoConnectionProperties method setupLayout.

@Override
public void setupLayout() {
    super.setupLayout();
    Form mainForm = Form.create(this, Form.MAIN);
    mainForm.addRow(endpoint);
    mainForm.addRow(clientAccessId);
    mainForm.addColumn(widget(secretKey).setWidgetType(Widget.HIDDEN_TEXT_WIDGET_TYPE));
    // Advanced
    Form advancedForm = Form.create(this, Form.ADVANCED);
    advancedForm.addRow(apiMode);
    advancedForm.addRow(timeout);
    advancedForm.addColumn(maxReconnAttemps);
    advancedForm.addColumn(attemptsIntervalTime);
    // A form for a reference to a connection
    Form refForm = Form.create(this, Form.REFERENCE);
    Widget compListWidget = widget(referencedComponent).setWidgetType(Widget.COMPONENT_REFERENCE_WIDGET_TYPE);
    refForm.addRow(compListWidget);
    refForm.addRow(mainForm);
    // Wizard
    Form wizardForm = Form.create(this, FORM_WIZARD);
    wizardForm.addRow(name);
    wizardForm.addRow(endpoint);
    wizardForm.addRow(clientAccessId);
    wizardForm.addRow(widget(secretKey).setWidgetType(Widget.HIDDEN_TEXT_WIDGET_TYPE));
    wizardForm.addRow(widget(testConnection).setLongRunning(true).setWidgetType(Widget.BUTTON_WIDGET_TYPE));
    wizardForm.addRow(timeout);
    wizardForm.addRow(maxReconnAttemps);
    wizardForm.addRow(attemptsIntervalTime);
}
Also used : Form(org.talend.daikon.properties.presentation.Form) Widget(org.talend.daikon.properties.presentation.Widget)

Aggregations

Form (org.talend.daikon.properties.presentation.Form)436 Test (org.junit.Test)199 Widget (org.talend.daikon.properties.presentation.Widget)73 ComponentProperties (org.talend.components.api.properties.ComponentProperties)17 Property (org.talend.daikon.properties.property.Property)13 SalesforceConnectionProperties (org.talend.components.salesforce.SalesforceConnectionProperties)12 Schema (org.apache.avro.Schema)10 ArrayList (java.util.ArrayList)9 ComponentWizard (org.talend.components.api.wizard.ComponentWizard)8 NamedThing (org.talend.daikon.NamedThing)8 INode (org.talend.core.model.process.INode)7 SpringBootTest (org.springframework.boot.test.context.SpringBootTest)6 SnowflakeTableProperties (org.talend.components.snowflake.SnowflakeTableProperties)6 GenericElementParameter (org.talend.designer.core.generic.model.GenericElementParameter)6 ElementParameter (org.talend.designer.core.model.components.ElementParameter)6 List (java.util.List)5 SalesforceInputProperties (org.talend.components.salesforce.dataprep.SalesforceInputProperties)5 PresentationItem (org.talend.daikon.properties.PresentationItem)5 ComponentWizardDefinition (org.talend.components.api.wizard.ComponentWizardDefinition)4 MarkLogicConnectionPropertiesTest (org.talend.components.marklogic.tmarklogicconnection.MarkLogicConnectionPropertiesTest)4