Package org.eclipse.swt.widgets

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


      }
    });

    ExpandItem penzugyItem = new ExpandItem(bar, SWT.NONE, 1);
    penzugyItem.setText("Objektumrel�ci�s");
    penzugyItem.setHeight(composite.computeSize(SWT.DEFAULT, SWT.DEFAULT).y);
    penzugyItem.setControl(composite);

    bar.setSpacing(8);

  }
View Full Code Here


    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.setFont(parent.getFont());

    createSourceGroup(composite);

    createOptionsGroup(composite);
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

            .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

  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));
  }

  // overridden where needed
  public void handleEvent(Event event) {
    enableOK();
View Full Code Here

    createFileTransfer(copyGroup, pasteGroup);
    createMyTransfer(copyGroup, pasteGroup);
    createControlTransfer(controlGroup);
    createAvailableTypes(typesGroup);

    sc.setMinSize(parent.computeSize(SWT.DEFAULT, SWT.DEFAULT));
    sc.setExpandHorizontal(true);
    sc.setExpandVertical(true);

    Point size = parentShell.computeSize(SWT.DEFAULT, SWT.DEFAULT);
    Rectangle monitorArea = parentShell.getMonitor().getClientArea();
View Full Code Here

    new Button(composite, SWT.RADIO).setText("SWT.RADIO");
    new Button(composite, SWT.CHECK).setText("SWT.CHECK");
    new Button(composite, SWT.TOGGLE).setText("SWT.TOGGLE");
    ExpandItem item = new ExpandItem(expandBar1, SWT.NONE, 0);
    item.setText(ControlExample.getResourceString("Item1_Text"));
    item.setHeight(composite.computeSize(SWT.DEFAULT, SWT.DEFAULT).y);
    item.setControl(composite);
    item.setImage(instance.images[ControlExample.ciClosedFolder]);

    // Second item
    composite = new Composite(expandBar1, SWT.NONE);
View Full Code Here

    new Label(composite, SWT.NONE).setText("SWT.ICON_WARNING");
    new Label(composite, SWT.NONE).setImage(display.getSystemImage(SWT.ICON_QUESTION));
    new Label(composite, SWT.NONE).setText("SWT.ICON_QUESTION");
    item = new ExpandItem(expandBar1, SWT.NONE, 1);
    item.setText(ControlExample.getResourceString("Item2_Text"));
    item.setHeight(composite.computeSize(SWT.DEFAULT, SWT.DEFAULT).y);
    item.setControl(composite);
    item.setImage(instance.images[ControlExample.ciOpenFolder]);
    item.setExpanded(true);
  }
View Full Code Here

    createButton(composite, gray, true, true);
    createButton(composite, gray, false, true);
    createButton(composite, gray, true, false);
    createButton(composite, gray, false, false);

    Point cSize = composite.computeSize(SWT.DEFAULT, SWT.DEFAULT);
    composite.setSize(cSize);
    shell.setBackground(gray);
    shell.setLocation(0, 0);
    shell.setSize(cSize);
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.