Package org.pentaho.di.ui.core.widget

Examples of org.pentaho.di.ui.core.widget.TextVar


    fdlGemHome.left = new FormAttachment(0, 0);
    fdlGemHome.right = new FormAttachment(middle, -margin);
    fdlGemHome.top = new FormAttachment(wRubyCompat, margin);
    lGemHome.setLayoutData(fdlGemHome);

    wGemHome = new TextVar(transMeta, wPanel, SWT.SINGLE | SWT.LEFT | SWT.BORDER);
    wGemHome.setText(input.getGemHome());
    props.setLook(wGemHome);
    wGemHome.addModifyListener(lsMod);
    FormData fdGemHome = new FormData();
    fdGemHome.left = new FormAttachment(middle, 0);
View Full Code Here


        fdlAccessKey=new FormData();
        fdlAccessKey.left = new FormAttachment(0, 0);
        fdlAccessKey.top  = new FormAttachment(wName, margin);
        fdlAccessKey.right= new FormAttachment(middle, -margin);
        wlAccessKey.setLayoutData(fdlAccessKey);
        wAccessKey=new TextVar(jobMeta, shell, SWT.SINGLE | SWT.LEFT | SWT.BORDER);
        props.setLook(wAccessKey);
        wAccessKey.addModifyListener(lsMod);
        fdAccessKey=new FormData();
        fdAccessKey.left = new FormAttachment(middle, 0);
        fdAccessKey.top  = new FormAttachment(wName, margin);
        fdAccessKey.right= new FormAttachment(100, 0);
        wAccessKey.setLayoutData(fdAccessKey);       

    // PrivateKey line
    wlPrivateKey=new Label(shell, SWT.RIGHT);
    wlPrivateKey.setText("Private Key");
     props.setLook(wlPrivateKey);
    fdlPrivateKey=new FormData();
    fdlPrivateKey.left = new FormAttachment(0, 0);
    fdlPrivateKey.top  = new FormAttachment(wAccessKey, margin);
    fdlPrivateKey.right= new FormAttachment(middle, -margin);
    wlPrivateKey.setLayoutData(fdlPrivateKey);
    wPrivateKey=new TextVar(jobMeta, shell, SWT.SINGLE | SWT.LEFT | SWT.BORDER);
     props.setLook(wPrivateKey);
    wPrivateKey.addModifyListener(lsMod);
    fdPrivateKey=new FormData();
    fdPrivateKey.left = new FormAttachment(middle, 0);
    fdPrivateKey.top  = new FormAttachment(wAccessKey, margin);
    fdPrivateKey.right= new FormAttachment(100, 0);
    wPrivateKey.setLayoutData(fdPrivateKey);

    // S3Bucket line
    wlS3Bucket=new Label(shell, SWT.RIGHT);
    wlS3Bucket.setText("S3Bucket");
     props.setLook(wlS3Bucket);
    fdlS3Bucket=new FormData();
    fdlS3Bucket.left = new FormAttachment(0, 0);
    fdlS3Bucket.top  = new FormAttachment(wPrivateKey, margin);
    fdlS3Bucket.right= new FormAttachment(middle, -margin);
    wlS3Bucket.setLayoutData(fdlS3Bucket);
    wS3Bucket=new TextVar(jobMeta, shell, SWT.SINGLE | SWT.LEFT | SWT.BORDER);
     props.setLook(wS3Bucket);
    wS3Bucket.addModifyListener(lsMod);
    fdS3Bucket=new FormData();
    fdS3Bucket.left = new FormAttachment(middle, 0);
    fdS3Bucket.top  = new FormAttachment(wPrivateKey, margin);
    fdS3Bucket.right= new FormAttachment(100, 0);
    wS3Bucket.setLayoutData(fdS3Bucket);

    // Filename line
    wlFilename=new Label(shell, SWT.RIGHT);
    wlFilename.setText("Filename");
     props.setLook(wlFilename);
    fdlFilename=new FormData();
    fdlFilename.left = new FormAttachment(0, 0);
    fdlFilename.top  = new FormAttachment(wS3Bucket, margin);
    fdlFilename.right= new FormAttachment(middle, -margin);
    wlFilename.setLayoutData(fdlFilename);
    wFilename=new TextVar(jobMeta, shell, SWT.SINGLE | SWT.LEFT | SWT.BORDER);
     props.setLook(wFilename);
    wFilename.addModifyListener(lsMod);
    fdFilename=new FormData();
    fdFilename.left = new FormAttachment(middle, 0);
    fdFilename.top  = new FormAttachment(wS3Bucket, margin);
View Full Code Here

    fdlValName.left = new FormAttachment(0, 0);
    fdlValName.right = new FormAttachment(middle, -margin);
    fdlValName.top = new FormAttachment(wServerURLField, margin);
    wlValName.setLayoutData(fdlValName);

    wFilenameField = new TextVar(transMeta, shell, SWT.SINGLE | SWT.LEFT | SWT.BORDER);
    props.setLook(wFilenameField);
    wFilenameField.addModifyListener(lsMod);
    FormData fdValName = new FormData();
    fdValName.left = new FormAttachment(middle, 0);
    fdValName.right = new FormAttachment(100, 0);
    fdValName.top = new FormAttachment(wServerURLField, margin);
    wFilenameField.setLayoutData(fdValName);


        // processtype value
        Label wlProcessTypeName = new Label(shell, SWT.RIGHT);
        wlProcessTypeName.setText(BaseMessages.getString(PKG, "FilemgrGet.ProcessType.Label"));
        props.setLook(wlProcessTypeName);
        FormData fdlProcessTypeName = new FormData();
        fdlProcessTypeName.left = new FormAttachment(0, 0);
        fdlProcessTypeName.right = new FormAttachment(middle, -margin);
        fdlProcessTypeName.top = new FormAttachment(wFilenameField, margin);
        wlProcessTypeName.setLayoutData(fdlProcessTypeName);

        Composite composite = new Composite(shell, SWT.NULL);
        composite.setLayout(new RowLayout());
        radioButtons2[0] = new Button(composite, SWT.RADIO);
        radioButtons2[0].setSelection(true);
        radioButtons2[0].setText("List Products");
        radioButtons2[0].pack();
        radioButtons2[1] = new Button(composite, SWT.RADIO);
        radioButtons2[1].setSelection(false);
        radioButtons2[1].setText("Get Product");
        radioButtons2[1].pack();
        props.setLook(radioButtons2[0]);
        props.setLook(radioButtons2[1]);


        //wFilenameField.addModifyListener(lsMod);
        FormData fdProcessTypeName = new FormData();
        fdProcessTypeName.left = new FormAttachment(middle, 0);
        fdProcessTypeName.right = new FormAttachment(100, 0);
        fdProcessTypeName.top = new FormAttachment(wFilenameField, margin);
        composite.setLayoutData(fdProcessTypeName);


        // search type value
        Label wlSearchName = new Label(shell, SWT.RIGHT);
        wlSearchName.setText(BaseMessages.getString(PKG, "FilemgrGet.SearchType.Label"));
        props.setLook(wlSearchName);
        FormData fdlSearchName = new FormData();
        fdlSearchName.left = new FormAttachment(0, 0);
        fdlSearchName.right = new FormAttachment(middle, -margin);
        fdlSearchName.top = new FormAttachment(composite, margin);
        wlSearchName.setLayoutData(fdlSearchName);

        Composite composite1 = new Composite(shell, SWT.NULL);
        composite1.setLayout(new RowLayout());
        radioButtons[0] = new Button(composite1, SWT.RADIO);
        radioButtons[0].setSelection(true);
        radioButtons[0].setText("Name");
        radioButtons[0].pack();
        radioButtons[1] = new Button(composite1, SWT.RADIO);
        radioButtons[1].setSelection(false);
        radioButtons[1].setText("ID");
        radioButtons[1].pack();
        props.setLook(radioButtons[0]);
        props.setLook(radioButtons[1]);
        radioButtons[0].addSelectionListener(new SelectionAdapter() {
            public void widgetSelected(SelectionEvent e) {
                selectedsearch = Search.NAME;
            }
        });
        radioButtons[1].addSelectionListener(new SelectionAdapter() {
            public void widgetSelected(SelectionEvent e) {
                selectedsearch = Search.ID;
            }
        });

        FormData fdSearchName = new FormData();
        fdSearchName.left = new FormAttachment(middle, 0);
        fdSearchName.right = new FormAttachment(100, 0);
        fdSearchName.top = new FormAttachment(composite, margin);
        composite1.setLayoutData(fdSearchName);

        if(meta.getProcessType()==Process.LIST){
            radioButtons[0].setEnabled(false);
            radioButtons[1].setEnabled(false);
        }


        // servername field value
        Label wlResultName = new Label(shell, SWT.RIGHT);
        wlResultName.setText(BaseMessages.getString(PKG, "FilemgrGet.Result.Label"));
        props.setLook(wlResultName);
        FormData fdlResultName = new FormData();
        fdlResultName.left = new FormAttachment(0, 0);
        fdlResultName.right = new FormAttachment(middle, -margin);
        fdlResultName.top = new FormAttachment(composite1, margin);
        wlResultName.setLayoutData(fdlResultName);

        wResultField = new TextVar(transMeta, shell, SWT.SINGLE | SWT.LEFT | SWT.BORDER);
        props.setLook(wResultField);
        wResultField.addModifyListener(lsMod);
        FormData fdResultName = new FormData();
        fdResultName.left = new FormAttachment(middle, 0);
        fdResultName.right = new FormAttachment(100, 0);
View Full Code Here

TOP

Related Classes of org.pentaho.di.ui.core.widget.TextVar

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.