Package org.eclipse.swt.layout

Examples of org.eclipse.swt.layout.RowData


        // 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


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

        listCurves = new org.eclipse.swt.widgets.List(optionGroup, SWT.MULTI | SWT.V_SCROLL);
        listCurves.setLayoutData(new RowData(40, 50));

        Button removeDataButton = new Button(optionGroup, SWT.PUSH);
        removeDataButton.setText("Remove selected curves");
        removeDataButton.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 Chart theComponent = new Chart(componentPanel, SWT.NONE);
        theComponent.setLayoutData(new RowData(450, 450));

        Map<String, Object> data = new HashMap<String, Object>();
        // mixed x and y values
        // double[] t1 = new double[] { 1, 5, 2, 9, 3, 12, 4, 0, 5, 23, 6, 15, 7, 10, 8, 19 };
        // double[] t2 = new double[] { 1, 6, 2, -3, 3, 0, 4, 7, 5, 54, 6, 12, 7, 34, 8, 32, 9, 31, 10, 23 };
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

        // the ChartPanel
        final Chart theComponent = new Chart(componentPanel, SWT.NONE);
        theComponent.setLayoutData(new RowData(400, 400));

        // mixed x and y values
        Map<String, Object> data = new HashMap<String, Object>();
        // double[] t1 = new double[] { -1, 7, 0, -5, 1, 5, 2, 9, 3, 12, 4, -10, 5, 23, 6, 15, 7, 10, 8, 19 };
        // double[] t2 = new double[] { 1, 6, 2, -3, 3, 0, 4, 7, 5, 54, 6, 12, 7, 34, 8, 32, 9, 31, 10, 23 };
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

        TextArea theComponent = new TextArea(componentPanel, SWT.NONE);
        theComponent.setText("A textArea");
        theComponent.setLayoutData(new RowData(100, 30));
        // ----------

        Group testPanelIComponent = IComponentTestPanel.getTestPanel(mainComposite, theComponent);
        Group testPanelIEditableComponent = IEditableComponentTestPanel.getTestPanel(mainComposite, theComponent);
        Group testPanelITextTarget = ITextTargetTestPanel.getTestPanel(mainComposite, theComponent);
View Full Code Here

                                                                                     // awt

        // TABLE
        final StringMatrixTable theComponent = new StringMatrixTable(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

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

        Label theComponent = new Label(componentPanel, SWT.NONE);
        theComponent.setText("A Label");
        theComponent.setLayoutData(new RowData(100, 30));
        // ----------

        Group testPanelIComponent = IComponentTestPanel.getTestPanel(mainComposite, theComponent);
        Group testPanelIEditableComponent = IEditableComponentTestPanel.getTestPanel(mainComposite, theComponent);
        Group testPanelITextTarget = ITextTargetTestPanel.getTestPanel(mainComposite, theComponent);
View Full Code Here

        optionGroup.setText("SetText");
        RowLayout rowLayout = new RowLayout(SWT.HORIZONTAL);
        optionGroup.setLayout(rowLayout);

        final Text textfield = new Text(optionGroup, SWT.SINGLE);
        textfield.setLayoutData(new RowData(100, 15));

        textfield.addModifyListener(new ModifyListener() {
            @Override
            public void modifyText(ModifyEvent arg0) {
                theComponent.setText(textfield.getText());
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 TextField theComponent = new TextField(componentPanel, SWT.NONE);
        theComponent.setText("A TextField");
        theComponent.setLayoutData(new RowData(100, 30));
        // ----------
        Group testPanel = getTestPanel(mainComposite, theComponent);

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

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

        final Chart theComponent = new Chart(componentPanel, SWT.NONE);
        theComponent.setLayoutData(new RowData(450, 450));

        // mixed x and y values
        double[] t1 = new double[] { -1, 7, 0, -5, 1, 5, 2, 9, 3, 12, 4, -10, 5, 23, 6, 15, 7, 10, 8, 19 };
        double[] t2 = new double[] { 1, 6, 2, -3, 3, 0, 4, 7, 5, 54, 6, 12, 7, 34, 8, 32, 9, 31, 10, 23 };
        Map<String, Object> data = new HashMap<String, Object>();
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.