Search in sources :

Example 36 with LabelledText

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

the class GoogleDataprocInfoForm method addConfigurationFields.

private void addConfigurationFields() {
    // $NON-NLS-1$
    Group configGroup = Form.createGroup(this, 2, Messages.getString("GoogleDataprocInfoForm.text.configuration"), 110);
    configGroup.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
    projectIdNameText = new LabelledText(configGroup, Messages.getString("GoogleDataprocInfoForm.text.configuration.projectId"), // $NON-NLS-1$
    1);
    clusterIdNameText = new LabelledText(configGroup, Messages.getString("GoogleDataprocInfoForm.text.configuration.clusterId"), // $NON-NLS-1$
    1);
    // $NON-NLS-1$
    regionNameText = new LabelledText(configGroup, Messages.getString("GoogleDataprocInfoForm.text.configuration.region"), 1);
    jarsBucketNameText = new LabelledText(configGroup, Messages.getString("GoogleDataprocInfoForm.text.configuration.jarsBucket"), // $NON-NLS-1$
    1);
}
Also used : LabelledText(org.talend.commons.ui.swt.formtools.LabelledText) Group(org.eclipse.swt.widgets.Group) GridData(org.eclipse.swt.layout.GridData)

Example 37 with LabelledText

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

the class KnoxInfoForm method addConfigurationFields.

private void addConfigurationFields() {
    // $NON-NLS-1$
    Group configGroup = Form.createGroup(this, 2, Messages.getString("KnoxInfoForm.text.configuration"), 110);
    configGroup.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
    // $NON-NLS-1$ $NON-NLS-2$
    knoxURLText = new LabelledText(configGroup, Messages.getString("KnoxInfoForm.text.knoxURL"), 1);
    // $NON-NLS-1$
    knoxUserText = new LabelledText(configGroup, Messages.getString("KnoxInfoForm.text.knoxUser"), 1);
    // $NON-NLS-1$
    knoxPasswordText = new LabelledText(configGroup, Messages.getString("KnoxInfoForm.text.knoxPassword"), 1);
    knoxPasswordText.getTextControl().setEchoChar('*');
    // $NON-NLS-1$
    knoxDirectoryText = new LabelledText(configGroup, Messages.getString("KnoxInfoForm.text.knoxDirectory"), 1);
}
Also used : LabelledText(org.talend.commons.ui.swt.formtools.LabelledText) Group(org.eclipse.swt.widgets.Group) GridData(org.eclipse.swt.layout.GridData)

Example 38 with LabelledText

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

the class DataBricksInfoForm method addConfigurationFields.

private void addConfigurationFields() {
    // $NON-NLS-1$
    Group configGroup = Form.createGroup(this, 2, Messages.getString("DataBricksInfoForm.text.configuration"), 110);
    configGroup.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
    runSubmitCombo = new // $NON-NLS-1$ $NON-NLS-2$
    LabelledCombo(// $NON-NLS-1$ $NON-NLS-2$
    configGroup, // $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$
    configGroup, // $NON-NLS-1$ $NON-NLS-2$
    Messages.getString("DataBricksInfoForm.text.cloudProvider"), // $NON-NLS-1$ $NON-NLS-2$
    "", getProviders());
    // $NON-NLS-1$
    endpointText = new LabelledText(configGroup, Messages.getString("DataBricksInfoForm.text.endPoint"), 1);
    // $NON-NLS-1$
    clusterIDText = new LabelledText(configGroup, Messages.getString("DataBricksInfoForm.text.clusterID"), 1);
    tokenText = new // $NON-NLS-1$
    LabelledText(// $NON-NLS-1$
    configGroup, // $NON-NLS-1$
    Messages.getString("DataBricksInfoForm.text.token"), // $NON-NLS-1$
    1, SWT.PASSWORD | SWT.BORDER | SWT.SINGLE);
    // $NON-NLS-1$
    dbfsDepFolderText = new LabelledText(configGroup, Messages.getString("DataBricksInfoForm.text.dbfsDepFolder"), 1);
}
Also used : LabelledText(org.talend.commons.ui.swt.formtools.LabelledText) Group(org.eclipse.swt.widgets.Group) GridData(org.eclipse.swt.layout.GridData)

Example 39 with LabelledText

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

the class Neo4jConnForm method addConnectionGroup.

private void addConnectionGroup(Composite composite) {
    // $NON-NLS-1$
    connectionGroup = Form.createGroup(composite, 4, "Connection");
    connectionGroup.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
    GridLayout gpLayout = new GridLayout(2, true);
    gpLayout.marginWidth = 5;
    gpLayout.marginHeight = 5;
    connectionGroup.setLayout(gpLayout);
    Composite versionComposite = new Composite(connectionGroup, SWT.NONE);
    versionComposite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false, 4, 1));
    GridLayout versionCompLayout = new GridLayout(4, false);
    versionCompLayout.marginWidth = 0;
    versionCompLayout.marginHeight = 0;
    versionComposite.setLayout(versionCompLayout);
    // create DB_Version Combo
    NoSQLRepositoryFactory repFactory = NoSQLRepositoryFactory.getInstance();
    List<String> dbVersions = repFactory.getDBVersions(getConnection().getDbType());
    List<String> dbVersionLabels = repositoryTranslator.getLabels(dbVersions);
    dbVersionCombo = new LabelledCombo(versionComposite, Messages.getString("MongoDBConnForm.dbVersion"), Messages.getString("MongoDBConnForm.dbVersionTip"), dbVersionLabels.toArray(new String[0]), 3, // $NON-NLS-1$ //$NON-NLS-2$
    true);
    getConnection().getAttributes().put(INeo4jAttributes.REMOTE_SERVER, String.valueOf(true));
    authArea = new Composite(connectionGroup, SWT.NONE);
    GridData authParentGd = new GridData(SWT.FILL, SWT.FILL, true, false, 2, 1);
    authArea.setLayoutData(authParentGd);
    GridLayout authLayout = new GridLayout(4, false);
    authLayout.marginWidth = 0;
    authLayout.marginHeight = 0;
    authArea.setLayout(authLayout);
    setUsernameBtn = new Button(authArea, SWT.CHECK);
    // $NON-NLS-1$
    setUsernameBtn.setText(Messages.getString("Neo4jConnForm.setUsername.label"));
    GridData setUsernameBtnGD = new GridData();
    setUsernameBtnGD.horizontalSpan = 4;
    setUsernameBtn.setLayoutData(setUsernameBtnGD);
    // $NON-NLS-1$
    userText = new LabelledText(authArea, Messages.getString("CassandraConnForm.username"), 1);
    pwdText = new LabelledText(authArea, Messages.getString("CassandraConnForm.password"), 1, // $NON-NLS-1$
    SWT.PASSWORD | SWT.BORDER | SWT.SINGLE);
    pwdText.getTextControl().setEchoChar('*');
    dbComposite = new Composite(connectionGroup, SWT.NONE);
    GridData dbCompGD = new GridData(GridData.FILL_BOTH);
    dbCompGD.horizontalSpan = 2;
    dbComposite.setLayoutData(dbCompGD);
    dbLayout = new StackLayout();
    dbComposite.setLayout(dbLayout);
    localDBComposite = new Composite(dbComposite, SWT.NONE);
    localDBComposite.setLayoutData(new GridData(GridData.FILL_BOTH));
    GridLayout localDBCompLayout = new GridLayout(4, false);
    localDBCompLayout.marginWidth = 0;
    localDBCompLayout.marginHeight = 0;
    localDBComposite.setLayout(localDBCompLayout);
    // $NON-NLS-1$
    dbPathTxt = new LabelledText(localDBComposite, Messages.getString("Neo4jConnForm.dbPath.label"), 2);
    dbPathTxt.getTextControl().setEditable(false);
    browseDbPathBtn = new Button(localDBComposite, SWT.NONE);
    // $NON-NLS-1$
    browseDbPathBtn.setText("...");
    // $NON-NLS-1$
    absPathTxt = new LabelledText(localDBComposite, Messages.getString("Neo4jConnForm.absPath.label"), 2);
    absPathTxt.getTextControl().setEditable(false);
    absPathTxt.setHideWidgets(true);
    remoteDBComposite = new Composite(dbComposite, SWT.NONE);
    remoteDBComposite.setLayoutData(new GridData(GridData.FILL_BOTH));
    GridLayout remoteDBCompLayout = new GridLayout(4, false);
    remoteDBCompLayout.marginWidth = 0;
    remoteDBCompLayout.marginHeight = 0;
    remoteDBComposite.setLayout(remoteDBCompLayout);
    // $NON-NLS-1$
    serverURLTxt = new LabelledText(remoteDBComposite, Messages.getString("Neo4jConnForm.serverURL.label"));
}
Also used : LabelledCombo(org.talend.commons.ui.swt.formtools.LabelledCombo) LabelledText(org.talend.commons.ui.swt.formtools.LabelledText) GridLayout(org.eclipse.swt.layout.GridLayout) Composite(org.eclipse.swt.widgets.Composite) Button(org.eclipse.swt.widgets.Button) GridData(org.eclipse.swt.layout.GridData) StackLayout(org.eclipse.swt.custom.StackLayout) NoSQLRepositoryFactory(org.talend.repository.nosql.factory.NoSQLRepositoryFactory)

Example 40 with LabelledText

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

the class MongoDBConnForm method addAuthGroup.

private void addAuthGroup(Composite composite) {
    // $NON-NLS-1$
    authGroup = Form.createGroup(composite, 4, Messages.getString("MongoDBConnForm.authentication"));
    authGroup.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false));
    GridLayout gpGrid = new GridLayout(4, false);
    gpGrid.marginWidth = 5;
    gpGrid.marginHeight = 5;
    authGroup.setLayout(gpGrid);
    checkRequireAuthBtn = new Button(authGroup, SWT.CHECK);
    // $NON-NLS-1$
    checkRequireAuthBtn.setText(Messages.getString("MongoDBConnForm.requireAuth"));
    checkRequireAuthBtn.setLayoutData(new GridData(SWT.BEGINNING, SWT.CENTER, true, false, 4, 1));
    authComposite = new Composite(authGroup, SWT.NONE);
    authComposite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false, 4, 1));
    GridLayout authCompLayout = new GridLayout(4, false);
    authCompLayout.marginWidth = 0;
    authCompLayout.marginHeight = 0;
    authComposite.setLayout(authCompLayout);
    authMechanismCombo = new LabelledCombo(authComposite, Messages.getString("MongoDBConnForm.authMechanism"), Messages.getString("MongoDBConnForm.authMechanism"), getAuthMechanismLables(repositoryTranslator.getValue(dbVersionCombo.getText())), 3, false);
    authMechanismCombo.select(0);
    checkSetAuthDatabaseBtn = new Button(authComposite, SWT.CHECK);
    // $NON-NLS-1$
    checkSetAuthDatabaseBtn.setText(Messages.getString("MongoDBConnForm.setAuthDatabase"));
    checkSetAuthDatabaseBtn.setLayoutData(new GridData(SWT.BEGINNING, SWT.CENTER, true, false, 4, 1));
    authDatabaseText = new LabelledText(authComposite, Messages.getString("MongoDBConnForm.authDatabase"), 3);
    // $NON-NLS-1$
    userText = new LabelledText(authComposite, Messages.getString("MongoDBConnForm.username"), 1);
    pwdText = new LabelledText(authComposite, Messages.getString("MongoDBConnForm.password"), 1, // $NON-NLS-1$
    SWT.PASSWORD | SWT.BORDER | SWT.SINGLE);
    pwdText.getTextControl().setEchoChar('*');
    // $NON-NLS-1$
    authKrbUserPrincipalText = new LabelledText(authComposite, Messages.getString("MongoDBConnForm.KRB_USER_PRINCIPAL"), 3);
    // $NON-NLS-1$
    authKrbRealmText = new LabelledText(authComposite, Messages.getString("MongoDBConnForm.KRB_REALM"), 3);
    // $NON-NLS-1$
    authKrbKdcText = new LabelledText(authComposite, Messages.getString("MongoDBConnForm.KRB_KDC"), 3);
    certificateField = new LabelledFileField(authComposite, Messages.getString("MongoDBConnForm.KeyStoreCertificate"), new String[] { "*.jks", "*.pem" }, 2, true);
    certificateField.getButtonControl().setText("...");
    keyStorePassText = new LabelledText(authComposite, Messages.getString("MongoDBConnForm.KeyStoreCertificatePassword"), 1, SWT.BORDER | SWT.SINGLE | SWT.PASSWORD);
    keyStorePassText.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 3, 1));
    checkUseCertAuthBtn = new Button(authComposite, SWT.CHECK);
    checkUseCertAuthBtn.setText(Messages.getString("MongoDBConnForm.UseCertificateAuthority"));
    checkUseCertAuthBtn.setLayoutData(new GridData(SWT.BEGINNING, SWT.CENTER, false, false, 4, 1));
    authCertificateField = new LabelledFileField(authComposite, Messages.getString("MongoDBConnForm.TrustStoreCertificate"), new String[] { "*.jks", "*.pem" }, 2, true);
    authCertificateField.getButtonControl().setText("...");
    trustStorePassText = new LabelledText(authComposite, Messages.getString("MongoDBConnForm.TrustStoreCertificatePassword"), 1, SWT.BORDER | SWT.SINGLE | SWT.PASSWORD);
    trustStorePassText.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 3, 1));
}
Also used : LabelledCombo(org.talend.commons.ui.swt.formtools.LabelledCombo) LabelledText(org.talend.commons.ui.swt.formtools.LabelledText) GridLayout(org.eclipse.swt.layout.GridLayout) Composite(org.eclipse.swt.widgets.Composite) Button(org.eclipse.swt.widgets.Button) GridData(org.eclipse.swt.layout.GridData) LabelledFileField(org.talend.commons.ui.swt.formtools.LabelledFileField)

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