Package org.eclipse.swt.layout

Examples of org.eclipse.swt.layout.RowData


        // 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 ComboBox theComponent = new ComboBox(componentPanel, SWT.NONE);
        theComponent.setLayoutData(new RowData(275, 150));
        // ----------
        Group testPanel = getTestPanel(mainComposite, theComponent);

        GridData testPanelGridData = new GridData();
        testPanelGridData.grabExcessHorizontalSpace = true;
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 StringMatrixTable theComponent = new StringMatrixTable(componentPanel, SWT.NONE);
        theComponent.setLayoutData(new RowData(275, 150));

        // change the content
        Group optionGroup = new Group(componentPanel, SWT.NONE);
        optionGroup.setText("SetMatrixData");
        optionGroup.setLayout(new RowLayout(SWT.HORIZONTAL));
View Full Code Here

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

        final ImageViewer theComponent = new ImageViewer(componentPanel, SWT.NONE);
        theComponent.setLayoutData(new RowData(275, 480));

        int imageHeight = 1000;
        int imageWidth = 1200;
        double[] t2 = new double[imageHeight * imageWidth];
        for (int i = 0; i < t2.length; i++) {
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

    sizeButton.addSelectionListener(new SelectionAdapter() {
      @Override
      public void widgetSelected(SelectionEvent e) {
        if (sizeButton.getSelection()) {
          sizeButton.setText("Set size text field");
          textField.setLayoutData(new RowData(200, 20));
          rightPanel.layout();
        } else {
          textField.setLayoutData(new RowData(100, 15));
          sizeButton.setText("Cancel set size");
          rightPanel.layout();
        }
      }
    });
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(80, 15));

        final Button setToolTipTextButton = new Button(optionGroup, SWT.PUSH);
        setToolTipTextButton.setText("setToolTipText");

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

        componentPanel.setBackground(new Color(Display.getCurrent(), 255, 175, 175));// PINK as in awt

        // LABEL
        final fr.soleil.comete.swt.Label theComponent = new fr.soleil.comete.swt.Label(componentPanel, SWT.NONE);
        theComponent.setText("A Label");
        theComponent.setLayoutData(new RowData(100, 30));

        // ----------
        Group testPanel = getTestPanel(mainComposite, theComponent);

        GridData testPanelGridData = new GridData();
View Full Code Here

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


        Tree theComponent = new Tree(componentPanel, SWT.NONE);
        theComponent.setLayoutData(new RowData(150, 450));

        root = new BasicTreeNode();
        root.setName("ROOT");

        childString = new String[4];
View Full Code Here

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

        // ----------
        Group testPanel = getTestPanel(mainComposite, theComponent);

        GridData testPanelGridData = new GridData();
View Full Code Here

                                                                                     // awt

        // TABLE
        final AbstractMatrixTable<String> theComponent = new AbstractMatrixTable<String>(componentPanel, SWT.NONE);
        theComponent.setData(initStringData());
        theComponent.setLayoutData(new RowData(275, 150));

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