Package org.eclipse.swt.layout

Examples of org.eclipse.swt.layout.FormLayout


     */
    public FilterCombo(Composite parent, String element) {
       
        super(parent, SWT.NONE);
       
        setLayout( new FormLayout() );
       
        theCombo = new Combo(this, SWT.DROP_DOWN | SWT.READ_ONLY);
        filters = new ArrayList();

        super.setBackground(theCombo.getBackground());
View Full Code Here


                      List localizedUnits,
                      boolean isEmptyItemRequired) {

        super(parent, SWT.NONE);
        this.isEmptyItemRequired = isEmptyItemRequired;
        setLayout(new FormLayout());

        theCombo = new Combo(this, SWT.DROP_DOWN | SWT.READ_ONLY);

        // Populate the combo from the properties file
        populateWithUnits(localizedUnits);
View Full Code Here

     */
    public Preview(Composite parent, int style) {
        super(parent, style);
        group = new Group(parent, SWT.NONE);
        group.setText(PREVIEW_TITLE);
        group.setLayout(new FormLayout());
        formData.left = new FormAttachment(0, MARGIN_LEFT);
        formData.right = new FormAttachment(100, -MARGIN_RIGHT);
        formData.top = new FormAttachment(0, MARGIN_TOP);
        formData.bottom = new FormAttachment(100, -MARGIN_BOTTOM);
        getChild().setLayoutData(formData);
View Full Code Here

    if (secondaryId == null) {
      setMultiView(this);
      return;
    }
    FormData layoutData = null;
    FormLayout layout = new FormLayout();
    parent.setLayout(layout);

    SashForm sashHor = new SashForm(parent, SWT.HORIZONTAL);
    sashHor.setLayout(new FormLayout());
   
    // Left
    Composite compositeLeft = new Composite(sashHor, SWT.NONE);
    compositeLeft.setLayout(new FormLayout());
    // Right
    Composite compositeRight = new Composite(sashHor, SWT.NONE);
    compositeRight.setLayout(new FormLayout());

    layoutData = new FormData();
    layoutData.top = new FormAttachment(0, pad_frame);
    layoutData.left = new FormAttachment(0, pad_frame);
    layoutData.right = new FormAttachment(100, -pad_frame);
View Full Code Here

      setMultiView(this);
      return;
    }

    FormData layoutData = null;
    FormLayout layout = new FormLayout();
    parent.setLayout(layout);
   
    final StyledText txtSource = new StyledText(parent, SWT.BORDER | SWT.MULTI | SWT.V_SCROLL | SWT.WRAP);
    final Text txtResult = new Text(parent, SWT.BORDER | SWT.MULTI | SWT.V_SCROLL | SWT.WRAP);
    final Label lblPattern = new Label(parent, SWT.NONE);
View Full Code Here

      setMultiView(this);
      return;
    }

    FormData layoutData = null;
    FormLayout layout = new FormLayout();
    parent.setLayout(layout);
   
    Label lblCharset = new Label(parent, SWT.NONE);
    final Combo cboCharset = new Combo(parent, SWT.BORDER);
    final Button chkChunked = new Button(parent, SWT.CHECK);
View Full Code Here

      setMultiView(this);
      return;
    }
   
    FormData layoutData = null;
    FormLayout layout = new FormLayout();
    parent.setLayout(layout);
   
    Label lblCharset = new Label(parent, SWT.NONE);
    Label lblDigest = new Label(parent, SWT.NONE);
    final Combo cboCharset = new Combo(parent, SWT.BORDER);
View Full Code Here

      setMultiView(this);
      return;
    }
   
    FormData layoutData = null;
    FormLayout layout = new FormLayout();
    parent.setLayout(layout);

    SashForm sashHor = new SashForm(parent, SWT.HORIZONTAL);
    sashHor.setLayout(new FormLayout());
   
    // Left
    Composite compositeLeft = new Composite(sashHor, SWT.NONE);
    compositeLeft.setLayout(new FormLayout());
    // Right
    Composite compositeRight = new Composite(sashHor, SWT.NONE);
    compositeRight.setLayout(new FormLayout());

    layoutData = new FormData();
    layoutData.top = new FormAttachment(0, pad_frame);
    layoutData.left = new FormAttachment(0, pad_frame);
    layoutData.right = new FormAttachment(100, -pad_frame);
View Full Code Here

      setMultiView(this);
      return;
    }
   
    FormData layoutData = null;
    FormLayout layout = new FormLayout();
    parent.setLayout(layout);
   
    Label lblCharset = new Label(parent, SWT.NONE);
    final Combo cboCharset = new Combo(parent, SWT.BORDER);
    final Text txtDEC = new Text(parent, SWT.BORDER | SWT.MULTI | SWT.V_SCROLL | SWT.WRAP);
View Full Code Here

  }

  @Override
  public void createPartControl(Composite parent) {
    FormData layoutData = null;
    FormLayout layout = new FormLayout();
    parent.setLayout(layout);
    Button btnTest = new Button(parent, SWT.PUSH);
    layoutData = new FormData();
    layoutData.top = new FormAttachment(0, pad_ctrl);
    layoutData.left = new FormAttachment(0, pad_ctrl);
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.