Package org.eclipse.swt.layout

Examples of org.eclipse.swt.layout.FormLayout


        // +
        // +label+text+bbox+
        // +
        // contents
        // +
        FormLayout layout = new FormLayout();
        layout.marginHeight = 0;
        layout.marginWidth = 0;
        layout.spacing = 0;
        aParent.setLayout(layout);
View Full Code Here


  }

  public SWTEventHandler(Composite frame, Profile profile) {
    super(profile);
    this.frame = frame;
    frame.setLayout(new FormLayout());

    // Left
    Composite sfLeft = new Composite(frame, SWT.NULL);
    sfLeft.setLayout(new FormLayout());

    // Right
    Composite sfRight = new Composite(frame, SWT.NULL);
    sfRight.setLayout(new FormLayout());

    // Build the split
    buildSplit(frame, sfLeft, sfRight);

    // Top Left
View Full Code Here

            return;
        }
        // end of Customised parameter widgets      
       
        _paramsComposite.setLayoutData(new GridData(SWT.FILL, SWT.TOP, true, false));
        _paramsComposite.setLayout(new FormLayout());
        int parameterPositionOffset = 0;
        for (ParameterData param : params)
        {           
            boolean valueInCombo = false;
            Label label = _toolkit.createLabel(_paramsComposite, ViewUtility.getDisplayText(param.getName()));
View Full Code Here

        final Composite composite = _toolkit.createComposite(scrolledComposite, SWT.NONE);
        scrolledComposite.setContent(composite);
        layoutData = new GridData(SWT.FILL, SWT.FILL, true, true);           
        layoutData.verticalIndent = 20;
        composite.setLayoutData(layoutData);
        composite.setLayout(new FormLayout());
       
        List<ParameterData> params = _opData.getParameters();
        ParameterData param = params.get(0);
        // Queue selection widget
        Label label = _toolkit.createLabel(composite, ViewUtility.getDisplayText(param.getName()));
View Full Code Here

     */
    private void createNotificationInfoComposite()
    {
        Composite composite = _toolkit.createComposite(_form.getBody(), SWT.NONE);
        composite.setLayoutData(new GridData(SWT.FILL, SWT.TOP, true, false));
        composite.setLayout(new FormLayout());
       
        Label label = _toolkit.createLabel(composite, "Select the notification to subscribe or unsubscribe");
        label.setFont(ApplicationRegistry.getFont(FONT_BOLD));
        FormData formData = new FormData();
        formData.top = new FormAttachment(0, 10);
View Full Code Here

    public void createPartControl(Composite parent)
    {
        // Create the Form
        _toolkit = new FormToolkit(parent.getDisplay());
        _form = _toolkit.createForm(parent);
        _form.getBody().setLayout(new FormLayout());
        _form.setText(APPLICATION_NAME);
       
        // Add selection listener for selection events in the Navigation view
        getSite().getPage().addSelectionListener(NavigationView.ID, _selectionListener);
View Full Code Here

    initGui();
    annotationListener = new CheckAnnotationDocumentListener(this);
  }

  private void initGui() {
    this.setLayout(new FormLayout());
    this.setSize(400, 800);

    documentSource = new Text(this, SWT.SINGLE | SWT.BORDER);
    FormData fdata1 = new FormData();
    fdata1.width = 200;
View Full Code Here

  private Composite iContainer;
 
  public UXFileBrowserInput(final Composite parent) {
    super(parent);
    iContainer = new Composite(container, SWT.NONE);
    iContainer.setLayout(new FormLayout());
   
    FormData data = (FormData) label.getLayoutData();
    data.top = new FormAttachment(0, 5);
   
    data = new FormData();
View Full Code Here

  public static void enableFormLayout(Composite c, int vMargin, int hMargin) {
    enableFormLayout(c, vMargin, hMargin, vMargin, hMargin);
 
 
  public static void enableFormLayout(Composite c, int t, int r, int b, int l) {
    FormLayout layout = new FormLayout();
    layout.marginTop = t;
    layout.marginRight = r;
    layout.marginBottom = b;
    layout.marginLeft = l;
    c.setLayout(layout);
View Full Code Here

  protected Composite container;
 
  public UXWidget(Composite parent) {
    container = new Composite(parent, SWT.NONE);
    container.setLayout(new FormLayout());
  }
View Full Code Here

TOP

Related Classes of org.eclipse.swt.layout.FormLayout

Copyright © 2018 www.massapicom. 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.