Package org.eclipse.swt.widgets

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


    p1a1ExpandBarItem.setControl(p1attributeExpandBarComposite);

    final ExpandItem attributeExpandBarItem2 = new ExpandItem(
        p1attributeExpandBar, SWT.NONE, 0);
    attributeExpandBarItem2.setText("Profession 1 Attribute 2");
    attributeExpandBarItem2.setHeight(attributeExpandBarComposite2
        .computeSize(SWT.DEFAULT, SWT.DEFAULT).y);
    attributeExpandBarItem2.setControl(attributeExpandBarComposite2);

    p1ExpandBarItem.setHeight(p1ExpandBarComposite.computeSize(SWT.DEFAULT,
        SWT.DEFAULT).y);
View Full Code Here


    p1a1ExpandBarItem1.setControl(p2attributeExpandBarComposite);

    final ExpandItem attributeExpandBarItem21 = new ExpandItem(
        attributeExpandBar1, SWT.NONE, 0);
    attributeExpandBarItem21.setText("Profession 2 Attribute 2");
    attributeExpandBarItem21.setHeight(attributeExpandBarComposite21
        .computeSize(SWT.DEFAULT, SWT.DEFAULT).y);
    attributeExpandBarItem21.setControl(attributeExpandBarComposite21);

    professionExpandBarItem1.setHeight(p2ExpandBarComposite.computeSize(
        SWT.DEFAULT, SWT.DEFAULT).y);
View Full Code Here

    Label descLabel = createDescriptionLabel(pageComponent, SSEUIMessages.AbstractColorPageDescription); //$NON-NLS-1$
    Composite coloringComposite = createColoringComposite(pageComponent);
    createContentsForPicker(coloringComposite);

    GridData gd = (GridData) descLabel.getLayoutData();
    gd.widthHint = (coloringComposite.computeSize(SWT.DEFAULT, SWT.DEFAULT)).x;
    setSize(pageComponent);
    return pageComponent;
  }

  /**
 
View Full Code Here

        this.buttonGroup[i].setSelection(true);
      else
        this.buttonGroup[i].setSelection(false);
    }
    sc.setContent(buttonComp);
    sc.setMinSize(buttonComp.computeSize(-1, -1));
  }

  public void setErrorMessage(String newErrorMessage) {
    super.setErrorMessage(newErrorMessage);
  }
View Full Code Here

                public void widgetSelected(SelectionEvent e)
                {
                    int count = Integer.parseInt(addMoreButton.getData("rowCount").toString());
                    createARowForCreatingHeadersBinding(composite, ++count);
                    addMoreButton.setData("rowCount", count);
                    scrolledComposite.setMinSize(composite.computeSize(SWT.DEFAULT, SWT.DEFAULT));
                    composite.layout();
                    _form.layout();
                }
            });
         
View Full Code Here

                    composite.layout();
                    _form.layout();
                }
            });
         
        scrolledComposite.setMinSize(composite.computeSize(SWT.DEFAULT, SWT.DEFAULT));
        composite.layout();
    }
   
    /**
     * Adds a row for adding a binding for Headers Exchange. Used by the method, which creates the customized
View Full Code Here

  protected void setErrorMessage(String msg) {
    errorMessageUI.setText(msg);
    Composite shell = errorMessageUI.getParent();
    while (!(shell instanceof Shell))
      shell = shell.getParent();
    shell.setSize(shell.computeSize(-1, -1));
  }

  // subclasses override, and often use super.handleEvent to call this
  public void handleEvent(Event event) {
    if (okButton != null// may be null if handler called from
View Full Code Here

                public void widgetSelected(SelectionEvent e)
                {
                    int count = Integer.parseInt(addMoreButton.getData("rowCount").toString());
                    createARowForCreatingHeadersBinding(composite, ++count);
                    addMoreButton.setData("rowCount", count);
                    scrolledComposite.setMinSize(composite.computeSize(SWT.DEFAULT, SWT.DEFAULT));
                    composite.layout();
                    _form.layout();
                }
            });
         
View Full Code Here

                    composite.layout();
                    _form.layout();
                }
            });
         
        scrolledComposite.setMinSize(composite.computeSize(SWT.DEFAULT, SWT.DEFAULT));
        composite.layout();
    }
   
    /**
     * Adds a row for adding a binding for Headers Exchange. Used by the method, which creates the customized
View Full Code Here

                public void widgetSelected(SelectionEvent e)
                {
                    int count = Integer.parseInt(addMoreButton.getData("rowCount").toString());
                    createARowForCreatingHeadersBinding(composite, ++count);
                    addMoreButton.setData("rowCount", count);
                    scrolledComposite.setMinSize(composite.computeSize(SWT.DEFAULT, SWT.DEFAULT));
                    composite.layout();
                    _form.layout();
                }
            });
         
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.