Examples of computeSize()


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

            .getString( "AuthenticationParameterPage.Krb5Options" ), 1 ); //$NON-NLS-1$
        krb5Composite = BaseWidgetUtils.createColumnContainer( krb5ExpandableComposite, 1, 1 );
        krb5ExpandableComposite.setClient( krb5Composite );
        createKrb5Controls();

        c.setSize( c.computeSize( SWT.DEFAULT, SWT.DEFAULT ) );
    }


    protected ExpandableComposite createExpandableSection( Composite parent, String label, int nColumns )
    {
View Full Code Here

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

      Label descriptionLabel = new Label(labelComp, SWT.NONE);
      descriptionLabel.setLayoutData(new GridData(GridData.FILL, GridData.BEGINNING, false, false));
      descriptionLabel.setBackground(scrollComp.getBackground());
      descriptionLabel.setText(Messages.CloudFoundryServiceWizardPage1_LABEL_NO_AVAIL_SERVICE);
      scrollComp.setContent(labelComp);
      labelComp.setSize(labelComp.computeSize(SWT.DEFAULT, SWT.DEFAULT));
      return;
    }

    final Composite comp = new Composite(scrollComp, SWT.NONE);
    comp.setBackground(scrollComp.getBackground());
View Full Code Here

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

    });

    scrollComp.setContent(comp);

    Rectangle r = scrollComp.getClientArea();
    r.height = comp.computeSize(r.width, SWT.DEFAULT).y;
    comp.setBounds(r);

    for (Control c : serviceInfoComposite.getChildren()) {
      c.dispose();
    }
View Full Code Here

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

    Control [] children = composite.getChildren ();
    int count = children.length;
    int maxWidth = 0, maxHeight = 0;
    for (int i=0; i<count; i++) {
      Control child = children [i];
      Point pt = child.computeSize (SWT.DEFAULT, SWT.DEFAULT, flushCache);
      maxWidth = Math.max (maxWidth, pt.x);
      maxHeight = Math.max (maxHeight, pt.y);
    }
   
    if (wHint != SWT.DEFAULT)
View Full Code Here

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

        if (c == null) {
          return;
        }
        Rectangle r = scrollComp.getClientArea();

        r.height = c.computeSize(r.width, SWT.DEFAULT).y;

        c.setBounds(r);
      }
    });
View Full Code Here

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

        CoolItem coolItem2 = new CoolItem(coolBar, 0);
        coolItem2.setControl(toolBar);
        Point size = toolBar.computeSize(SWT.DEFAULT, SWT.DEFAULT);
        coolItem1.setSize(coolItem1.computeSize(size.x, size.y));
        coolItem2.setSize(coolItem2.computeSize(size.x, size.y));
        coolBar.setSize(coolBar.computeSize(SWT.DEFAULT, SWT.DEFAULT));
        children[i] = coolBar;
      } else if (control.equals("Group")) {
        Group group = new Group(layoutComposite, SWT.NONE);
        group.setText(LayoutExample
            .getResourceString("Group_Index", new String[] { new Integer(i).toString() }));
View Full Code Here

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

    Label ctrl = new Label(bar, SWT.PUSH);
    ctrl.setText("Button 1"); //$NON-NLS-1$
    Point size = ctrl.computeSize(SWT.DEFAULT, SWT.DEFAULT);

    Point ps = item.computeSize(size.x, size.y);
    item.setPreferredSize(ps);
    item.setControl(ctrl);

    bar.pack();
View Full Code Here

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

        logger.debug("Log info fields were built.");

        scrolledComposite.setContent(logFieldsGroup);
        scrolledComposite.setExpandHorizontal(true);
        scrolledComposite.setExpandVertical(true);
        scrolledComposite.setMinSize(logFieldsGroup.computeSize(SWT.DEFAULT, SWT.DEFAULT));

        getViewSite().getPage().addSelectionListener(this);
        logger.debug("Listener for DetailLogView was added.");
    }
View Full Code Here

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

      Label lblDesc = new Label(colorSet, SWT.NULL);
      Messages.setLanguageText(lblDesc, keys[i]);

      data = new RowData();
      data.width = 20;
      data.height = lblDesc.computeSize(SWT.DEFAULT, SWT.DEFAULT).y - 3;
      cColor.setLayoutData(data);
     
      // If color changes, update our legend
      config.addParameterListener(keys[i],paramListeners[i] = new ParameterListener() {
        public void parameterChanged(String parameterName) {
View Full Code Here

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

        x += 3;
      }

      // label

      Point p = localNameLabel.computeSize(w - IMG - GAP, SWT.DEFAULT, flushCache);
      if (apply) {
        localNameLabel.setBounds(x + IMG + GAP, y, p.x, p.y);
      }

      y += p.y + GAP;
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.