Package org.eclipse.swt.custom

Examples of org.eclipse.swt.custom.ScrolledComposite


    shell.addShellListener(this);
    shell.setText("Reports erstellen");
    shell.setSize(500, 300);
    shell.setLayout(new FormLayout());

    scroller = new ScrolledComposite(shell, SWT.V_SCROLL | SWT.H_SCROLL);
    FormData fd = new FormData();
    fd.left = fd.top = new FormAttachment(0, 0);
    fd.right = fd.bottom = new FormAttachment(100, 0);
    scroller.setLayoutData(fd);
View Full Code Here


    fd.top = new FormAttachment(compRadios, 5, SWT.TOP);
    fd.right = new FormAttachment(100, 0);
    ok.setLayoutData(fd);

    // Scroll-Bereich erzeugen.
    ScrolledComposite scroller = new ScrolledComposite(shell, SWT.V_SCROLL | SWT.H_SCROLL);
    fd = new FormData();
    fd.left = fd.top = new FormAttachment(0, 0);
    fd.right = new FormAttachment(100, 0);
    fd.bottom = new FormAttachment(compRadios, -5, SWT.TOP);
    scroller.setLayoutData(fd);

    // Scrollbereich mit Leben f�llen.
    createScrollContent(scroller);

    // Noch mittig ins vorhandene Fenster setzen.
View Full Code Here

    buttonOK.setLayoutData(fd);
    buttonOK.addSelectionListener(this);
    shell.setDefaultButton(buttonOK);

    // Composite-Objekte f�r Personen-Checkboxen aufbauen.
    personCheckboxesScroller = new ScrolledComposite(inner, SWT.BORDER | SWT.H_SCROLL | SWT.V_SCROLL);
    fd = new FormData();
    fd.top = new FormAttachment(buttonCheckAll, 5, SWT.BOTTOM);
    fd.bottom = new FormAttachment(buttonOK, -5, SWT.TOP);
    fd.left = new FormAttachment(0, 0);
    fd.right = new FormAttachment(100, 0);
View Full Code Here

    textNewTag.addModifyListener(this);

    // Dazwischen ein Composite, in dem die schon existierenden Tags angezeigt
    // werden.
    // Composite-Objekte f�r Personen-Checkboxen aufbauen.
    tagsCheckboxesScroller = new ScrolledComposite(inner, SWT.BORDER | SWT.H_SCROLL | SWT.V_SCROLL);
    fd = new FormData();
    fd.top = new FormAttachment(0, 0);
    fd.bottom = new FormAttachment(textNewTag, -5, SWT.TOP);
    fd.left = new FormAttachment(0, 0);
    fd.right = new FormAttachment(100, 0);
View Full Code Here

    textNewTags.setLayoutData(fd);

    // Dazwischen ein Composite, in dem die schon existierenden Tags angezeigt
    // werden.
    // Composite-Objekte f�r Personen-Checkboxen aufbauen.
    tagsCheckboxesScroller = new ScrolledComposite(inner, SWT.BORDER | SWT.H_SCROLL | SWT.V_SCROLL);
    fd = new FormData();
    fd.top = new FormAttachment(textPersons, 5, SWT.BOTTOM);
    fd.bottom = new FormAttachment(textNewTags, -5, SWT.TOP);
    fd.left = new FormAttachment(0, 0);
    fd.right = new FormAttachment(100, 0);
View Full Code Here

    return composite;
  }

  protected Control createContents(Composite parent) {
    // create scrollbars for this preference page when needed
    final ScrolledComposite sc1 = new ScrolledComposite(parent, SWT.H_SCROLL | SWT.V_SCROLL);
    sc1.setLayoutData(new GridData(GridData.FILL_BOTH));
    Composite pageComponent = createComposite(sc1, 1);
    sc1.setContent(pageComponent);
    setSize(pageComponent);

    Label descLabel = createDescriptionLabel(pageComponent, SSEUIMessages.AbstractColorPageDescription); //$NON-NLS-1$
    Composite coloringComposite = createColoringComposite(pageComponent);
    createContentsForPicker(coloringComposite);
View Full Code Here

      Point minSize = composite.computeSize(SWT.DEFAULT, SWT.DEFAULT);
      composite.setSize(minSize);
      // set scrollbar composite's min size so page is expandable but
      // has scrollbars when needed
      if (composite.getParent() instanceof ScrolledComposite) {
        ScrolledComposite sc1 = (ScrolledComposite) composite.getParent();
        sc1.setMinSize(minSize);
        sc1.setExpandHorizontal(true);
        sc1.setExpandVertical(true);
      }
    }
  }
View Full Code Here

    return composite;
  }

  private Composite createScrolledComposite(Composite parent) {
    // create scrollbars for this parent when needed
    final ScrolledComposite sc1 = new ScrolledComposite(parent, SWT.H_SCROLL | SWT.V_SCROLL);
    sc1.setLayoutData(new GridData(GridData.FILL_BOTH));
    Composite composite = createComposite(sc1, 1);
    sc1.setContent(composite);

    // not calling setSize for composite will result in a blank composite,
    // so calling it here initially
    // setSize actually needs to be called after all controls are created,
    // so scrolledComposite
View Full Code Here

      Point minSize = composite.computeSize(SWT.DEFAULT, SWT.DEFAULT);
      composite.setSize(minSize);
      // set scrollbar composite's min size so page is expandable but
      // has scrollbars when needed
      if (composite.getParent() instanceof ScrolledComposite) {
        ScrolledComposite sc1 = (ScrolledComposite) composite.getParent();
        sc1.setMinSize(minSize);
        sc1.setExpandHorizontal(true);
        sc1.setExpandVertical(true);
      }
    }
  }
View Full Code Here

    return button;
  }

  protected Composite createScrolledComposite(Composite parent) {
    // create scrollbars for this parent when needed
    final ScrolledComposite sc1 = new ScrolledComposite(parent, SWT.H_SCROLL | SWT.V_SCROLL);
    sc1.setLayoutData(new GridData(GridData.FILL_BOTH));
    Composite composite = createComposite(sc1, 1);
    sc1.setContent(composite);

    // not calling setSize for composite will result in a blank composite,
    // so calling it here initially
    // setSize actually needs to be called after all controls are created,
    // so scrolledComposite
View Full Code Here

TOP

Related Classes of org.eclipse.swt.custom.ScrolledComposite

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.