Package org.eclipse.swt.layout

Examples of org.eclipse.swt.layout.RowData


        optionGroup.setText("Init player data");
        RowLayout rowLayout = new RowLayout(SWT.HORIZONTAL);
        optionGroup.setLayout(rowLayout);

        final Text textField = new Text(optionGroup, SWT.SINGLE);
        textField.setLayoutData(new RowData(40, 15));

        final Button setColumnButton = new Button(optionGroup, SWT.PUSH);
        setColumnButton.setText("OK");
        setColumnButton.addSelectionListener(new SelectionAdapter() {
            @Override
View Full Code Here


        // set a background to let user see limits of the component
        componentPanel.setBackground(new Color(Display.getCurrent(), 255, 175, 175));// PINK as in awt

        //Combo box
        final Player theComponent = new Player(componentPanel, SWT.NONE);
        theComponent.setLayoutData(new RowData(300, 50));
        theComponent.initSlider(10);
        theComponent.setIndex(0);

        // ----------
        Group testPanel = getTestPanel(mainComposite, theComponent);
View Full Code Here

        componentGridData.verticalAlignment = SWT.BEGINNING;
        componentPanel.setLayoutData(componentGridData);

        //Combo box
        final ComboBox theComponent = new ComboBox(componentPanel, SWT.NONE);
        theComponent.setLayoutData(new RowData(150, 50));
        theComponent.setValueList(IComboBoxTestPanel.VALUES_1);
        // ----------

        Group testPanelIComponent = IComponentTestPanel.getTestPanel(mainComposite, theComponent);
        Group testPanelIComboBox = IComboBoxTestPanel.getTestPanel(mainComposite, theComponent);
View Full Code Here

        RowLayout rowLayout = new RowLayout(SWT.HORIZONTAL);
        rowLayout.spacing = 5;
        optionGroup.setLayout(rowLayout);

        final Text textField = new Text(optionGroup, SWT.SINGLE);
        textField.setLayoutData(new RowData(40, 15));

        final Button setColumnButton = new Button(optionGroup, SWT.PUSH);
        setColumnButton.setText("setColumns");
        setColumnButton.addSelectionListener(new SelectionAdapter() {
            @Override
View Full Code Here

        // set a background to let user see limits of the component
        componentPanel.setBackground(new Color(Display.getCurrent(), 255, 175, 175));// PINK as in awt

        final TextArea theComponent = new TextArea(componentPanel, SWT.NONE);
        theComponent.setText("A TextArea");
        theComponent.setLayoutData(new RowData(100, 30));
        // ----------
        Group testPanel = getTestPanel(mainComposite, theComponent);

        GridData testPanelGridData = new GridData();
        testPanelGridData.grabExcessHorizontalSpace = true;
View Full Code Here

        combo.add("%6d");
        combo.add("%6.3s");
        combo.add("%6.3e");
        combo.add("%5.2f");
        combo.add("%+05d");
        combo.setLayoutData(new RowData(80, 15));

        final Button setFormatButton = new Button(optionGroup, SWT.PUSH);
        setFormatButton.setText("setFormat");

        setFormatButton.addSelectionListener(new SelectionAdapter() {
View Full Code Here

                                                                                     // awt

        // TABLE
        final NumberMatrixTable<Double> theComponent = new NumberMatrixTable<Double>(componentPanel, SWT.NONE);
        theComponent.setData(generateData());
        theComponent.setLayoutData(new RowData(400, 200));

        // change the content
        Group optionGroup = new Group(componentPanel, SWT.NONE);
        optionGroup.setText("SetMatrixData");
        optionGroup.setLayout(new RowLayout(SWT.HORIZONTAL));
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

        // 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 )
        {
            controlsViewer.setInput( ( ( RootDSE ) connection.getRootDSE() ).getSupportedControls() );
        }
        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 )
        {
            extensionViewer.setInput( ( ( RootDSE ) connection.getRootDSE() ).getSupportedExtensions() );
        }
        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 )
        {
            featureViewer.setInput( ( ( RootDSE ) connection.getRootDSE() ).getSupportedFeatures() );
        }
        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

    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

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.