Examples of computeSize()


Examples of org.cishell.templates.wizards.pagepanels.SetupPlatformsPanel.computeSize()

   
    // TODO: This control listener should maybe be on setupPlatformsPanel?
    scrollingContainer.addControlListener(new ControlAdapter() {
      public void controlResized(ControlEvent controlEvent) {
        scrollingContainer.setMinSize(
          setupPlatformsPanel.computeSize(SWT.DEFAULT, SWT.DEFAULT));
      }
    });
   
    scrollingContainer.setContent(setupPlatformsPanel);
    scrollingContainer.setExpandHorizontal(true);
View Full Code Here

Examples of org.eclipse.swt.custom.CCombo.computeSize()

            // Select the previously selected item from the cell
            combo.select(combo.indexOf(item.getText(column)));

            // Compute the width for the editor
            // Also, compute the column width, so that the dropdown fits
            editor.minimumWidth = combo.computeSize(SWT.DEFAULT, SWT.DEFAULT).x;
            if (incrementTable.getColumn(column).getWidth() < editor.minimumWidth)
            {
              incrementTable.getColumn(column).setWidth(editor.minimumWidth);
            }
            // Set the focus on the dropdown and set into the editor
View Full Code Here

Examples of org.eclipse.swt.custom.ScrolledComposite.computeSize()

      FontMetrics fm = gc.getFontMetrics();
      int height = 10 * fm.getHeight();
      gc.dispose();

      TableWrapData data = new TableWrapData(TableWrapData.FILL_GRAB);
      data.maxHeight = scroll.computeSize(SWT.DEFAULT, height).y;
      templateSection.setLayout(new TableWrapLayout());
      templateSection.setLayoutData(data);

      TableWrapLayout layout = new TableWrapLayout();
      layout.leftMargin = 0;
View Full Code Here

Examples of org.eclipse.swt.custom.StyledText.computeSize()

    }
    BidiSegmentListenerTester tester = new BidiSegmentListenerTester();
    StyledText textWidget = getTextWidget();
    textWidget.addBidiSegmentListener(tester);
    textWidget.setText(" "); //$NON-NLS-1$
    textWidget.computeSize(SWT.DEFAULT, SWT.DEFAULT);
    textWidget.removeBidiSegmentListener(tester);

    brokenBidiPlatformTextWidth = tester.called ? -1 : textWidth;
  }
View Full Code Here

Examples of org.eclipse.swt.widgets.Button.computeSize()

      return (Button) buttons.get(buttonID);
    }

    Button button = new Button(toolbarPanel, SWT.PUSH);
    GridData gData = new GridData(SWT.END, SWT.BOTTOM, false, false);
    gData.widthHint = button.computeSize(SWT.DEFAULT, SWT.DEFAULT).y
        + buttonExtraMargin;
    button.setLayoutData(gData);

    /*
     * Add listener if given; for default buttons this is used in place of the default listener
View Full Code Here

Examples of org.eclipse.swt.widgets.Button.computeSize()

    button.setVisible(value);

    if (true == value) {
      GridData gData = ((GridData) button.getLayoutData());
      gData.exclude = false;
      gData.widthHint = button.computeSize(SWT.DEFAULT, SWT.DEFAULT).y
          + buttonExtraMargin;
    } else {
      GridData gData = ((GridData) button.getLayoutData());
      gData.exclude = true;
      gData.widthHint = 0;
View Full Code Here

Examples of org.eclipse.swt.widgets.Button.computeSize()

        button,
        IDialogConstants.BUTTON_WIDTH);
    data.widthHint =
      Math.max(
        widthHint,
        button.computeSize(SWT.DEFAULT, SWT.DEFAULT, true).x);
    button.setLayoutData(data);
    button.addSelectionListener(getSelectionListener());
    return button;
  }
  /**
 
View Full Code Here

Examples of org.eclipse.swt.widgets.Canvas.computeSize()

        // setupPersonalityComp(personalityComp);

        scrolledComp.setContent(sheet);
        scrolledComp.setExpandHorizontal(true);
        scrolledComp.setExpandVertical(true);
        scrolledComp.setMinSize(sheet.computeSize(SWT.DEFAULT, SWT.DEFAULT));
    }

    /**
     * @param personalityComp
     */
 
View Full Code Here

Examples of org.eclipse.swt.widgets.Composite.computeSize()

    @Override
    public void createControl(Composite parent) {
        Composite composite = new Composite(parent, SWT.NULL);
        composite.setLayout(new GridLayout());
        composite.setLayoutData(new GridData(GridData.VERTICAL_ALIGN_FILL | GridData.HORIZONTAL_ALIGN_FILL));
        composite.setSize(composite.computeSize(SWT.DEFAULT, SWT.DEFAULT));

        Composite container = new Composite(composite, SWT.NONE);
        container.setLayout(new GridLayout(2, false));
        GridData gridData = new GridData(SWT.FILL, SWT.FILL, true, false);
        gridData.minimumWidth = 450;
View Full Code Here

Examples of org.eclipse.swt.widgets.Composite.computeSize()

  public void createControl(Composite parent) {
        Composite composite = new Composite(parent, SWT.NULL);
        composite.setLayout(new GridLayout());
        composite.setLayoutData(new GridData(GridData.VERTICAL_ALIGN_FILL
                | GridData.HORIZONTAL_ALIGN_FILL));
        composite.setSize(composite.computeSize(SWT.DEFAULT, SWT.DEFAULT));

    Composite container = new Composite(composite, SWT.NONE);
    container.setLayout(new GridLayout(2, false));
    GridData gridData = new GridData(SWT.FILL, SWT.FILL, true, false);
    gridData.minimumWidth = 450;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.