Package org.eclipse.swt.layout

Examples of org.eclipse.swt.layout.FormAttachment


    super(parent);
   
    input = new Text(container, SWT.MULTI | SWT.BORDER | opts);
   
    FormData data = (FormData) label.getLayoutData();
    data.top = new FormAttachment(0, 5);
    data = new FormData();
    data.top = new FormAttachment(0);
    data.left = new FormAttachment(label, 5, SWT.RIGHT);
    data.right = new FormAttachment(100);
    data.bottom = new FormAttachment(100);
    input.setLayoutData(data);
  }
View Full Code Here


  public UXTextInput(final Composite parent) {
    super(parent);
    input = new Text(container, SWT.SINGLE | SWT.BORDER);
   
    FormData data = (FormData) label.getLayoutData();
    data.top = new FormAttachment(0, 5);
    data = new FormData();
    data.top = new FormAttachment(label, 0, SWT.CENTER);
    data.left = new FormAttachment(label, 5, SWT.RIGHT);
    data.right = new FormAttachment(100);
    input.setLayoutData(data);
  }
View Full Code Here

  public UXSpinner(Composite parent) {
    super(parent);
    spinner = new Spinner(container, SWT.BORDER);
   
    FormData data = (FormData) label.getLayoutData();
    data.top = new FormAttachment(0, 5);
   
    data = new FormData();
    data.left = new FormAttachment(label, 5, SWT.RIGHT);
    data.right = new FormAttachment(100);
    data.top = new FormAttachment(label, 0, SWT.CENTER);
    spinner.setLayoutData(data);
  }
View Full Code Here

  public UXPasswordInput(final Composite parent) {
    super(parent);
    input = new Text(container, SWT.SINGLE | SWT.BORDER | SWT.PASSWORD);
   
    FormData data = (FormData) label.getLayoutData();
    data.top = new FormAttachment(0, 5);
    data = new FormData();
    data.top = new FormAttachment(label, 0, SWT.CENTER);
    data.left = new FormAttachment(label, 5, SWT.RIGHT);
    data.right = new FormAttachment(100);
    input.setLayoutData(data);
  }
View Full Code Here

    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();
    data.top = new FormAttachment(label, 0, SWT.CENTER);
    data.left = new FormAttachment(label, 5, SWT.RIGHT);
    data.right = new FormAttachment(100);
    iContainer.setLayoutData(data);
   
    input = new Text(iContainer, SWT.SINGLE | SWT.BORDER);
   
    button = new Button(iContainer, SWT.PUSH);
    File icoFile = new File(UXIconsUtil.getInstance().get16IconSetPath() + File.separator + "fileopen.png");
   
    if (!icoFile.exists()) {
      button.setText("...");
    } else {
      button.setImage(new Image(parent.getDisplay(), icoFile.getAbsolutePath()));
    }
   
    data = new FormData();
    data.right = new FormAttachment(100);
    data.top = new FormAttachment(0, 5);
    data.width = data.height = 22;
    button.setLayoutData(data);
   
    data = new FormData();
    data.left = new FormAttachment(0);
    data.right = new FormAttachment(button, -5);
    data.top = new FormAttachment(button, 0, SWT.CENTER);
    input.setLayoutData(data);
   
    button.addListener(SWT.MouseUp, new Listener() {
      @Override
      public void handleEvent(Event arg0) {
View Full Code Here

    layout.marginLeft = l;
    c.setLayout(layout);
  }
 
  public static void setTop(Control c1, int s) {
    extractFormData(c1).top = new FormAttachment(0);
  }
View Full Code Here

  public static void setTop(Control c1, int s) {
    extractFormData(c1).top = new FormAttachment(0);
  }
 
  public static void setLeft(Control c1, int s) {
    extractFormData(c1).left = new FormAttachment(0);
  }
View Full Code Here

  public static void setLeft(Control c1, int s) {
    extractFormData(c1).left = new FormAttachment(0);
  }
 
  public static void setRight(Control c1, int s) {
    extractFormData(c1).right = new FormAttachment(0);
  }
View Full Code Here

  public static void setRight(Control c1, int s) {
    extractFormData(c1).right = new FormAttachment(0);
  }
 
  public static void setTop(Control c1, Control c2, int s, int p) {
    extractFormData(c1).top = new FormAttachment(c2, s, p);
  }
View Full Code Here

  public static void setTop(Control c1, Control c2, int s, int p) {
    extractFormData(c1).top = new FormAttachment(c2, s, p);
  }
 
  public static void setRight(Control c1, Control c2, int s, int p) {
    extractFormData(c1).right = new FormAttachment(c2, s, p);
  }
View Full Code Here

TOP

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

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.