Package org.eclipse.swt.widgets

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


                    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


    new IndividualFiltersSubView(composite);

    ExpandItem item1 = new ExpandItem(bar, SWT.NONE);
    item1.setControl(composite);
    item1.setText("Individually Ignored Items");
    item1.setHeight(composite.computeSize(SWT.DEFAULT, SWT.DEFAULT).y);

    // area for files ignored by a pattern
    composite = new Composite(bar, SWT.NONE);
    new GeneralFiltersSubView().createPartControl(composite);
View Full Code Here

    new GeneralFiltersSubView().createPartControl(composite);

    ExpandItem item2 = new ExpandItem(bar, SWT.NONE);
    item2.setControl(composite);
    item2.setText("Items Ignored by Instruction");
    item2.setHeight(composite.computeSize(SWT.DEFAULT, SWT.DEFAULT).y);
  }

  private class GeneralFiltersSubView {

    private Button buttonEdit;
View Full Code Here

            .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

   
    createIdentitySection(rightPane, toolkit);
    createServiceSection(servicePane, toolkit);
   
    leftScrolled.setMinSize(servicePane.computeSize(SWT.DEFAULT, SWT.DEFAULT));
    rightScrolled.setMinSize(rightPane.computeSize(SWT.DEFAULT, SWT.DEFAULT));
  }
 
  /** ********************************************************************** */

  private Section createIdentitySection(Composite parent, FormToolkit toolkit) {
View Full Code Here

   
    createIdentitySection(rightPane, toolkit);
    createServiceSection(servicePane, toolkit);
   
    leftScrolled.setMinSize(servicePane.computeSize(SWT.DEFAULT, SWT.DEFAULT));
    rightScrolled.setMinSize(rightPane.computeSize(SWT.DEFAULT, SWT.DEFAULT));
  }
 
  /** ********************************************************************** */

  private Section createIdentitySection(Composite parent, FormToolkit toolkit) {
View Full Code Here

    composite.setLayoutData(new GridData(GridData.FILL_BOTH));
    sc.setContent(composite);
    sc.addControlListener(new ControlAdapter() {
      public void controlResized(ControlEvent e) {
        Rectangle r = sc.getClientArea();
        sc.setMinSize(composite.computeSize(r.width, SWT.DEFAULT));
      }
    });
    createCheckboxes(composite);
    sc.setExpandVertical(true);
    sc.setExpandHorizontal(true);
View Full Code Here

      addSplitViewSpec(view, splitViewSpec);
    }

    Window window = view.getShell();
    Composite contentPane = window.getContentPane();
    Point size = contentPane.computeSize(SWT.DEFAULT, SWT.DEFAULT);
    Rectangle trim = window.computeTrim(0, 0, size.x, size.y);
    window.setMinimumSize(trim.width, trim.height);
  }
 
  public View[] getViews() {
View Full Code Here

    });

    mainWindow.open();
   
    Composite contentPane = mainWindow.getContentPane();
    Point size = contentPane.computeSize(SWT.DEFAULT, SWT.DEFAULT);
    Rectangle trim = mainWindow.computeTrim(0, 0, size.x, size.y);
    mainWindow.setMinimumSize(trim.width, trim.height);
   
    while (!mainWindow.isDisposed()) {
      if (!display.readAndDispatch()) {
View Full Code Here

    });
    button.setLayoutData(data);

    ExpandItem szervezesItem = new ExpandItem(bar, SWT.NONE, 0);
    szervezesItem.setText("Rel�ci�s");
    szervezesItem.setHeight(composite.computeSize(SWT.DEFAULT, SWT.DEFAULT).y);
    szervezesItem.setControl(composite);
    // szalonItem.setImage(szalonImage);

    // M�sodik elem
    composite = new Composite(bar, SWT.NONE);
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.