Package org.eclipse.swt.layout

Examples of org.eclipse.swt.layout.RowData


    Group sifGroup = new Group(shell, SWT.NONE);
    sifGroup.setText("SIF graph file name");
    sifGroup.setLayout(new RowLayout());
    sifText = new Text(sifGroup, SWT.SINGLE | SWT.BORDER);
    sifText.setLayoutData(new RowData(200, 20));
    if (siffile != null)
    {
      sifText.setText(siffile);
    }
    sifBrowseButton = new Button(sifGroup, SWT.PUSH);
    sifBrowseButton.setText("Browse");
    sifBrowseButton.addSelectionListener(adapter);

    Group geneGroup = new Group(shell, SWT.NONE);
    geneGroup.setText("Genes-of-interest file name");
    geneGroup.setLayout(new RowLayout());
    geneText = new Text(geneGroup, SWT.SINGLE | SWT.BORDER);
    geneText.setLayoutData(new RowData(200, 20));
    if (genefile != null)
    {
      geneText.setText(genefile);
    }
    geneBrowseButton = new Button(geneGroup, SWT.PUSH);
    geneBrowseButton.setText("Browse");
    geneBrowseButton.addSelectionListener(adapter);

    Group paramsGroup = new Group(shell, SWT.NONE);
    paramsGroup.setLayout(new RowLayout());
    paramsGroup.setText("Parameters");
    new Label(paramsGroup, SWT.NONE).setText("Search distance: ");
    limitCombo = new Combo(paramsGroup, SWT.READ_ONLY);
    limitCombo.setItems(new String[]{"0", "1", "2", "3", "4", "5", "6", "7", "8", "9"});
    limitCombo.select(limit != null? limit : 2);
    Label stub = new Label(paramsGroup, SWT.NONE);
    stub.setLayoutData(new RowData(70, 20));
    directedButton = new Button(paramsGroup, SWT.CHECK);
    directedButton.setText("Directed");
    directedButton.setSelection(directed != null ? directed : false);
    directedButton.setEnabled(false);
View Full Code Here


    filterPanel.setText("Filter rows");
    filterPanel.setLayout(new RowLayout());

    filterField = new Text(filterPanel, SWT.BORDER);
    filterField.setTextLimit(30);
    filterField.setLayoutData(new RowData(80, 17));

    filterButton = new Button(filterPanel, SWT.PUSH);
    filterButton.setText("Filter");

    filterButton.addSelectionListener(this);
View Full Code Here

        // alt servers
        // schema DN
        // ldap version

        Composite controlsComposite = new Composite( this.tabFolder, SWT.NONE );
        controlsComposite.setLayoutData( new RowData( 10, 10 ) );
        GridLayout controlsLayout = new GridLayout();
        controlsComposite.setLayout( controlsLayout );
        ListViewer controlsViewer = new ListViewer( controlsComposite );
        controlsViewer.getList().setLayoutData( new GridData( GridData.FILL_BOTH ) );
        controlsViewer.setContentProvider( new ArrayContentProvider() );
        controlsViewer.setLabelProvider( new LabelProvider() );
        if ( connection != null && connection.getRootDSE() != null )
        {
            String[] supportedControls = ( ( RootDSE ) connection.getRootDSE() ).getSupportedControls();
            addDescritionsToOIDs( supportedControls );
            controlsViewer.setInput( supportedControls );
        }
        this.controlsTab = new TabItem( this.tabFolder, SWT.NONE );
        this.controlsTab.setText( "Controls" );
        this.controlsTab.setControl( controlsComposite );

        Composite extensionComposite = new Composite( this.tabFolder, SWT.NONE );
        extensionComposite.setLayoutData( new RowData( 10, 10 ) );
        GridLayout extensionLayout = new GridLayout();
        extensionComposite.setLayout( extensionLayout );
        ListViewer extensionViewer = new ListViewer( extensionComposite );
        extensionViewer.getList().setLayoutData( new GridData( GridData.FILL_BOTH ) );
        extensionViewer.setContentProvider( new ArrayContentProvider() );
        extensionViewer.setLabelProvider( new LabelProvider() );
        if ( connection != null && connection.getRootDSE() != null )
        {
            String[] supportedExtensions = ( ( RootDSE ) connection.getRootDSE() ).getSupportedExtensions();
            addDescritionsToOIDs( supportedExtensions );
            extensionViewer.setInput( supportedExtensions );
        }
        this.extensionsTab = new TabItem( this.tabFolder, SWT.NONE );
        this.extensionsTab.setText( "Extensions" );
        this.extensionsTab.setControl( extensionComposite );

        Composite featureComposite = new Composite( this.tabFolder, SWT.NONE );
        featureComposite.setLayoutData( new RowData( 10, 10 ) );
        GridLayout featureLayout = new GridLayout();
        featureComposite.setLayout( featureLayout );
        ListViewer featureViewer = new ListViewer( featureComposite );
        featureViewer.getList().setLayoutData( new GridData( GridData.FILL_BOTH ) );
        featureViewer.setContentProvider( new ArrayContentProvider() );
        featureViewer.setLabelProvider( new LabelProvider() );
        if ( connection != null && connection.getRootDSE() != null )
        {
            String[] supportedFeatures = ( ( RootDSE ) connection.getRootDSE() ).getSupportedFeatures();
            addDescritionsToOIDs( supportedFeatures );
            featureViewer.setInput( supportedFeatures );
        }
        this.featuresTab = new TabItem( this.tabFolder, SWT.NONE );
        this.featuresTab.setText( "Features" );
        this.featuresTab.setControl( featureComposite );

        Composite rawComposite = new Composite( this.tabFolder, SWT.NONE );
        rawComposite.setLayoutData( new RowData( 10, 10 ) );
        GridLayout rawLayout = new GridLayout();
        rawComposite.setLayout( rawLayout );
        Table table = new Table( rawComposite, SWT.MULTI | SWT.BORDER | SWT.H_SCROLL | SWT.V_SCROLL
            | SWT.FULL_SELECTION | SWT.HIDE_SELECTION );
        GridData gridData = new GridData( GridData.FILL_BOTH );
View Full Code Here

        mainLayout.marginWidth = 0;
        mainLayout.marginHeight = 0;
        this.tabFolder.setLayout( mainLayout );

        Composite ocComposite = new Composite( this.tabFolder, SWT.NONE );
        ocComposite.setLayoutData( new RowData( 10, 10 ) );
        GridLayout ocLayout = new GridLayout();
        ocComposite.setLayout( ocLayout );
        ListViewer ocViewer = new ListViewer( ocComposite );
        ocViewer.getList().setLayoutData( new GridData( GridData.FILL_BOTH ) );
        ocViewer.setContentProvider( new ArrayContentProvider() );
        ocViewer.setLabelProvider( new LabelProvider() );
        if ( EntryPropertyPage.getEntry( getElement() ) != null )
        {
            IEntry entry = EntryPropertyPage.getEntry( getElement() );
            if ( entry != null )
            {
                Object[] ocds = entry.getSubschema().getObjectClassNames();
                ocViewer.setInput( ocds );
            }
        }
        this.ocTab = new TabItem( this.tabFolder, SWT.NONE );
        this.ocTab.setText( "Object Classes" );
        this.ocTab.setControl( ocComposite );

        Composite atComposite = new Composite( this.tabFolder, SWT.NONE );
        atComposite.setLayoutData( new RowData( 10, 10 ) );
        GridLayout atLayout = new GridLayout();
        atComposite.setLayout( atLayout );
        ListViewer atViewer = new ListViewer( atComposite );
        atViewer.getList().setLayoutData( new GridData( GridData.FILL_BOTH ) );
        atViewer.setContentProvider( new ArrayContentProvider() );
View Full Code Here

                    logger.error("RegisterMachine Exception: ",e);
                }
            }
        });

        RowData dataRow = new RowData();
        dataRow.width = 80;
        confirmation.setLayoutData(dataRow);

        Button cancel = new Button(confirmations, SWT.PUSH);
        cancel.setText("Cancelar");
        cancel.addListener(SWT.Selection, new Listener() {
            public void handleEvent(Event arg0) {
                setVisible(false);
            }
        });

        dataRow = new RowData();
        dataRow.width = 80;
        cancel.setLayoutData(dataRow);
    }
View Full Code Here

    private void createBankingBilletButton() {
        bankingBilletButton = new Button(area.getLeftButtons(), SWT.NONE);
        bankingBilletButton.setText("Holerite");
        bankingBilletButton.setEnabled(false);

        RowData data = new RowData();
        data.width = 80;
        bankingBilletButton.setLayoutData(data);

        bankingBilletButton.addListener(SWT.MouseDown, new Listener() {
            public void handleEvent(Event e) {
View Full Code Here

    protected void createOkButton() {
        okButton = new Button(area.getRightButtons(), SWT.PUSH);
        okButton.setText("Salvar");

        RowData data = new RowData();
        data.width = 80;
        okButton.setLayoutData(data);

        okButton.addListener(SWT.MouseUp, createValidationListener());
    }
View Full Code Here

    protected void createNewButton() {
        newButton = new Button(area.getRightButtons(), SWT.PUSH);
        newButton.setText("Novo");

        RowData data = new RowData();
        data.width = 80;
        newButton.setLayoutData(data);

        newButton.addListener(SWT.MouseUp, new Listener() {
            public void handleEvent(Event event) {
View Full Code Here

    data.right = new FormAttachment(100, -1);
    data.bottom = new FormAttachment(100, -1);
    data.height = 35;
    buttons.setLayoutData(data);

    RowData buttonData = new RowData();
    buttonData.width = 80;

    Button okButton = new Button(buttons, SWT.PUSH);
    okButton.setText("OK");
    okButton.setLayoutData(buttonData);
View Full Code Here

    private void createSubtitle() {
        Composite legend = new Composite(this, SWT.NONE);
        legend.setLayout(new RowLayout());
        legend.setBackground(new Color(null, 255, 255, 255));
       
        RowData rowData = new RowData();
        rowData.height = 10;
        rowData.width = 10;
       
        Label presentLabelColor = new Label(legend, SWT.LEFT | SWT.BORDER);
        presentLabelColor.setBackground(colorChosen);
View Full Code Here

TOP

Related Classes of org.eclipse.swt.layout.RowData

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.