Search in sources :

Example 16 with LabelledText

use of org.talend.commons.ui.swt.formtools.LabelledText in project tbd-studio-se by Talend.

the class SynapseInfoForm method addSynapseFields.

private void addSynapseFields() {
    Group synapseGroup = Form.createGroup(this, 2, Messages.getString("SynapseInfoForm.synapseSettings"), 110);
    synapseGroup.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
    synapseHostnameText = new LabelledText(synapseGroup, Messages.getString("SynapseInfoForm.text.synapse.hostname"), 1);
    synapseSparkPoolsText = new LabelledText(synapseGroup, Messages.getString("SynapseInfoForm.text.synapse.sparkPools"), 1);
    synapseTokenText = new LabelledText(synapseGroup, Messages.getString("SynapseInfoForm.text.synapse.token"), 1, SWT.PASSWORD | SWT.BORDER | SWT.SINGLE);
    synapseTokenText.getTextControl().setEchoChar('*');
}
Also used : LabelledText(org.talend.commons.ui.swt.formtools.LabelledText) Group(org.eclipse.swt.widgets.Group) GridData(org.eclipse.swt.layout.GridData)

Example 17 with LabelledText

use of org.talend.commons.ui.swt.formtools.LabelledText in project tbd-studio-se by Talend.

the class StandardHCInfoForm method addDatabricksField.

private void addDatabricksField() {
    // $NON-NLS-1$
    dataBricksGroup = Form.createGroup(bigComposite, 2, Messages.getString("DataBricksInfoForm.text.configuration"), 110);
    dataBricksGroup.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
    runSubmitCombo = new // $NON-NLS-1$ $NON-NLS-2$
    LabelledCombo(// $NON-NLS-1$ $NON-NLS-2$
    dataBricksGroup, // $NON-NLS-1$ $NON-NLS-2$
    Messages.getString("DataBricksInfoForm.text.runSubmitMode"), // $NON-NLS-1$ $NON-NLS-2$
    "", getRunSubmitModes());
    cloudProviderCombo = new // $NON-NLS-1$ $NON-NLS-2$
    LabelledCombo(// $NON-NLS-1$ $NON-NLS-2$
    dataBricksGroup, // $NON-NLS-1$ $NON-NLS-2$
    Messages.getString("DataBricksInfoForm.text.cloudProvider"), // $NON-NLS-1$ $NON-NLS-2$
    "", getProviders());
    // $NON-NLS-1$
    endpointText = new LabelledText(dataBricksGroup, Messages.getString("DataBricksInfoForm.text.endPoint"), 1);
    // $NON-NLS-1$
    clusterIDText = new LabelledText(dataBricksGroup, Messages.getString("DataBricksInfoForm.text.clusterID"), 1);
    tokenText = new // $NON-NLS-1$
    LabelledText(// $NON-NLS-1$
    dataBricksGroup, // $NON-NLS-1$
    Messages.getString("DataBricksInfoForm.text.token"), // $NON-NLS-1$
    1, SWT.PASSWORD | SWT.BORDER | SWT.SINGLE);
    // $NON-NLS-1$
    dbfsDepFolderText = new LabelledText(dataBricksGroup, Messages.getString("DataBricksInfoForm.text.dbfsDepFolder"), 1);
}
Also used : LabelledText(org.talend.commons.ui.swt.formtools.LabelledText) GridData(org.eclipse.swt.layout.GridData)

Example 18 with LabelledText

use of org.talend.commons.ui.swt.formtools.LabelledText in project tbd-studio-se by Talend.

the class CMConnectionForm method createControl.

@Override
protected void createControl() {
    Composite connectionGroup = createParentGroup(Messages.getString("HadoopImportRemoteOptionPage.group.connection.cm"), this, // $NON-NLS-1$
    3);
    // $NON-NLS-1$
    connURLText = new LabelledText(connectionGroup, Messages.getString("HadoopImportRemoteOptionPage.text.connURL.cm"), 2);
    // $NON-NLS-1$
    usernameText = new LabelledText(connectionGroup, Messages.getString("HadoopImportRemoteOptionPage.text.username"), 2);
    // $NON-NLS-1$
    passwordText = new LabelledText(connectionGroup, Messages.getString("HadoopImportRemoteOptionPage.text.password"), 2);
    passwordText.getTextControl().setEchoChar('*');
    createAuthenticationFields(connectionGroup);
    boolean createResult = createRetieveMetaFields(connectionGroup);
    connButton = new Button(connectionGroup, SWT.PUSH);
    GridData connBtnGD = new GridData(SWT.END, SWT.CENTER, false, false);
    if (createResult) {
        connBtnGD.horizontalSpan = 1;
    } else {
        connBtnGD.horizontalSpan = 3;
    }
    connButton.setLayoutData(connBtnGD);
    // $NON-NLS-1$
    connButton.setText(Messages.getString("HadoopImportRemoteOptionPage.button.connect"));
}
Also used : LabelledText(org.talend.commons.ui.swt.formtools.LabelledText) Composite(org.eclipse.swt.widgets.Composite) Button(org.eclipse.swt.widgets.Button) GridData(org.eclipse.swt.layout.GridData)

Example 19 with LabelledText

use of org.talend.commons.ui.swt.formtools.LabelledText in project tbd-studio-se by Talend.

the class ABRConnectionForm method createControl.

@Override
protected void createControl() {
    Composite connectionGroup = createParentGroup(Messages.getString("HadoopImportRemoteOptionPage.group.connection.abr"), this, // $NON-NLS-1$
    3);
    // $NON-NLS-1$
    connURLText = new LabelledText(connectionGroup, Messages.getString("HadoopImportRemoteOptionPage.text.connURL.abr"), 2);
    // $NON-NLS-1$
    usernameText = new LabelledText(connectionGroup, Messages.getString("HadoopImportRemoteOptionPage.text.username"), 2);
    // $NON-NLS-1$
    passwordText = new LabelledText(connectionGroup, Messages.getString("HadoopImportRemoteOptionPage.text.password"), 2);
    passwordText.getTextControl().setEchoChar('*');
    createAuthenticationFields(connectionGroup);
    boolean createResult = createRetieveMetaFields(connectionGroup);
    connButton = new Button(connectionGroup, SWT.PUSH);
    GridData connBtnGD = new GridData(SWT.END, SWT.CENTER, false, false);
    if (createResult) {
        connBtnGD.horizontalSpan = 1;
    } else {
        connBtnGD.horizontalSpan = 3;
    }
    connButton.setLayoutData(connBtnGD);
    // $NON-NLS-1$
    connButton.setText(Messages.getString("HadoopImportRemoteOptionPage.button.connect"));
}
Also used : LabelledText(org.talend.commons.ui.swt.formtools.LabelledText) Composite(org.eclipse.swt.widgets.Composite) Button(org.eclipse.swt.widgets.Button) GridData(org.eclipse.swt.layout.GridData)

Example 20 with LabelledText

use of org.talend.commons.ui.swt.formtools.LabelledText in project tbd-studio-se by Talend.

the class HDIInfoForm method addWebHCatFields.

private void addWebHCatFields() {
    // $NON-NLS-1$
    Group whcGroup = Form.createGroup(this, 4, Messages.getString("HadoopClusterForm.webHCatSettings"), 110);
    whcGroup.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
    // $NON-NLS-1$
    whcHostnameText = new LabelledText(whcGroup, Messages.getString("HadoopClusterForm.text.webHCat.hostname"), 1);
    // $NON-NLS-1$
    whcPortText = new LabelledText(whcGroup, Messages.getString("HadoopClusterForm.text.webHCat.port"), 1);
    // $NON-NLS-1$
    whcUsernameText = new LabelledText(whcGroup, Messages.getString("HadoopClusterForm.text.webHCat.username"), 1);
    whcJobResultFolderText = new // $NON-NLS-1$
    LabelledText(// $NON-NLS-1$
    whcGroup, // $NON-NLS-1$
    Messages.getString("HadoopClusterForm.text.webHCat.jobResultFolder"), 1);
}
Also used : LabelledText(org.talend.commons.ui.swt.formtools.LabelledText) Group(org.eclipse.swt.widgets.Group) GridData(org.eclipse.swt.layout.GridData)

Aggregations

LabelledText (org.talend.commons.ui.swt.formtools.LabelledText)46 GridData (org.eclipse.swt.layout.GridData)40 Composite (org.eclipse.swt.widgets.Composite)31 GridLayout (org.eclipse.swt.layout.GridLayout)28 Group (org.eclipse.swt.widgets.Group)26 Button (org.eclipse.swt.widgets.Button)21 LabelledCombo (org.talend.commons.ui.swt.formtools.LabelledCombo)11 ScrolledComposite (org.eclipse.swt.custom.ScrolledComposite)9 UtilsButton (org.talend.commons.ui.swt.formtools.UtilsButton)7 Label (org.eclipse.swt.widgets.Label)6 FillLayout (org.eclipse.swt.layout.FillLayout)5 LabelledFileField (org.talend.commons.ui.swt.formtools.LabelledFileField)5 MetadataEmfTableEditor (org.talend.core.ui.metadata.editor.MetadataEmfTableEditor)5 Text (org.eclipse.swt.widgets.Text)4 MetadataEmfTableEditorView (org.talend.core.ui.metadata.editor.MetadataEmfTableEditorView)4 SelectionAdapter (org.eclipse.swt.events.SelectionAdapter)3 SelectionEvent (org.eclipse.swt.events.SelectionEvent)3 Point (org.eclipse.swt.graphics.Point)3 NoSQLRepositoryFactory (org.talend.repository.nosql.factory.NoSQLRepositoryFactory)3 ArrayList (java.util.ArrayList)2