Search in sources :

Example 86 with Form

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

the class ElasticsearchOutputProperties method setupLayout.

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

Example 87 with Form

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

the class ElasticsearchDatastorePropertiesTest method testSetupLayout.

/**
 * Checks {@link ElasticsearchDatastoreProperties} sets correctly initial layout
 * properties
 */
@Test
public void testSetupLayout() {
    Form main = properties.getForm(Form.MAIN);
    Collection<Widget> mainWidgets = main.getWidgets();
}
Also used : Form(org.talend.daikon.properties.presentation.Form) Widget(org.talend.daikon.properties.presentation.Widget) Test(org.junit.Test)

Example 88 with Form

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

the class BigQueryDatastoreProperties method setupLayout.

@Override
public void setupLayout() {
    super.setupLayout();
    Form mainForm = new Form(this, Form.MAIN);
    mainForm.addRow(projectName);
    // Temporarily disable file widgets since their JSON Schema representation is the contents,
    // not the path
    // mainForm.addRow(Widget.widget(serviceAccountFile).setWidgetType(Widget.FILE_WIDGET_TYPE));
    mainForm.addRow(serviceAccountFile);
    mainForm.addRow(tempGsFolder);
}
Also used : Form(org.talend.daikon.properties.presentation.Form)

Example 89 with Form

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

the class BigQueryInputProperties method setupLayout.

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

Example 90 with Form

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

the class CouchbaseOutputPropertiesTest method testSetupLayout.

@Test
public void testSetupLayout() {
    Assert.assertNull(properties.getForm(Form.MAIN));
    properties.schema.setupLayout();
    properties.setupLayout();
    Form mainForm = properties.getForm(Form.MAIN);
    Assert.assertNotNull(mainForm);
    Assert.assertNotNull(mainForm.getWidget(properties.idFieldName));
}
Also used : Form(org.talend.daikon.properties.presentation.Form) Test(org.junit.Test)

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