Package org.eclipse.swt.layout

Examples of org.eclipse.swt.layout.FormLayout


     */
    public void createControl(Composite parent) {
        widgetFactory = new FeaturePanelWidgetFactory();
        tabbedPropertyComposite = new FeaturePanelComposite(parent, widgetFactory, hasTitleBar);
        widgetFactory.paintBordersFor(tabbedPropertyComposite);
        tabbedPropertyComposite.setLayout(new FormLayout());
        FormData formData = new FormData();
        formData.left = new FormAttachment(0, 0);
        formData.right = new FormAttachment(100, 0);
        formData.top = new FormAttachment(0, 0);
        formData.bottom = new FormAttachment(100, 0);
View Full Code Here


        super();
    }

    @Override
    public void createPartControl( Composite parent ) {
        FormLayout layout = new FormLayout();
        parent.setLayout(layout);

        locationEntry = new LocationEntry(this);
        Control control = locationEntry.createControl(parent);
        FormData data = new FormData();
View Full Code Here

  public FeaturePanelList(Composite parent,
          FeaturePanelWidgetFactory factory) {
    super(parent, SWT.NO_FOCUS);
    this.factory = factory;
    removeAll();
    setLayout(new FormLayout());
    initColours();
    initAccessible();
    topNavigationElement = new TopNavigationElement(this);
    bottomNavigationElement = new BottomNavigationElement(this);
View Full Code Here

    /**
     * Create the main composite.
     */
    protected void createMainComposite() {
        mainComposite = factory.createComposite(this, SWT.NO_FOCUS | SWT.NO_SCROLL);
        mainComposite.setLayout(new FormLayout());
        FormData formData = new FormData();
        formData.left = new FormAttachment(0, 0);
        formData.right = new FormAttachment(100, 0);
        formData.top = new FormAttachment(0, 0);
        formData.bottom = new FormAttachment(100, 0);
View Full Code Here

            data.top = new FormAttachment(0, 0);
            title.setLayoutData(data);
        }

        leftComposite = factory.createComposite(mainComposite, SWT.NO_FOCUS);
        leftComposite.setLayout(new FormLayout());

        scrolledComposite = factory.createScrolledComposite(mainComposite, SWT.H_SCROLL
                | SWT.V_SCROLL | SWT.NO_FOCUS);

        FormData formData = new FormData();
        formData.left = new FormAttachment(leftComposite, 0);
        formData.right = new FormAttachment(100, 0);
        if (displayTitle) {
            formData.top = new FormAttachment(title, 0);
        } else {
            formData.top = new FormAttachment(0, 0);
        }
        formData.bottom = new FormAttachment(100, 0);
        scrolledComposite.setLayoutData(formData);

        formData = new FormData();
        formData.left = new FormAttachment(0, 0);
        formData.right = new FormAttachment(scrolledComposite, 0);
        if (displayTitle) {
            formData.top = new FormAttachment(title, 0);
        } else {
            formData.top = new FormAttachment(0, 0);
        }
        formData.bottom = new FormAttachment(100, 0);
        leftComposite.setLayoutData(formData);

        tabComposite = factory.createComposite(scrolledComposite, SWT.NO_FOCUS);
        tabComposite.setLayout(new FormLayout());

        scrolledComposite.setContent(tabComposite);
        scrolledComposite.setAlwaysShowScrollBars(false);
        scrolledComposite.setExpandVertical(true);
        scrolledComposite.setExpandHorizontal(true);
View Full Code Here

        factory.getColors().initializeSectionToolBarColors();
        setBackground(factory.getColors().getBackground());
        setForeground(factory.getColors().getForeground());

        FormLayout layout = new FormLayout();
        layout.marginWidth = 1;
        layout.marginHeight = 2;
        setLayout(layout);

        Font font;
View Full Code Here

     * @param parent the composite parent.
     * @return the composite.
     */
    public Composite createFlatFormComposite( Composite parent ) {
        Composite composite = createComposite(parent);
        FormLayout layout = new FormLayout();
        layout.marginWidth = 5 + 2;
        layout.marginHeight = 4;
        layout.spacing = 6 + 1;
        composite.setLayout(layout);
        return composite;
View Full Code Here

  protected Composite createTitleArea(Composite parent) {
    // Create the title area which will contain
    // a title, message, and image.
    int margins = 2;
    titleArea = new Composite(parent, SWT.NONE);
    FormLayout layout = new FormLayout();
    layout.marginHeight = 0;
    layout.marginWidth = margins;
    titleArea.setLayout(layout);

   
View Full Code Here

           
        });
       
        Composite buttonComposite = new Composite(listComposite, SWT.NONE);
        buttonComposite.setLayoutData(new GridData(SWT.LEFT, SWT.TOP, false, false));
        buttonComposite.setLayout(new FormLayout());
       
        listAddButton = new Button(buttonComposite, SWT.PUSH);
        listAddButton.setText("Add");
        FormData data = new FormData();
        data.left = new FormAttachment(0, standardPadding);
View Full Code Here

        label.setText(Messages.StylingConstants_label_anchor);
        label.setLayoutData(new GridData(SWT.LEFT, SWT.FILL, false, false));
        label.setToolTipText(Messages.StylingConstants_tooltip_anchor);
        Composite anchorComposite = new Composite(graphicComposite, SWT.NONE);
        anchorComposite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false));
        anchorComposite.setLayout(new FormLayout());
        anchorXViewer = new ComboExpressionViewer(anchorComposite, SWT.SINGLE);
        anchorXViewer.setOptions(getAnchorList());
        FormData data = new FormData();
        data.left = new FormAttachment(0, 0);
        data.top = new FormAttachment(0, 0);
        data.bottom = new FormAttachment(100, 0);
        anchorXViewer.getControl().setLayoutData(data);
        anchorXViewer.getControl().setToolTipText(Messages.StylingConstants_tooltip_anchor);
        label = new Label(anchorComposite, SWT.NONE);
        label.setText("X");
        data = new FormData();
        data.left = new FormAttachment(anchorXViewer.getControl(), 4);
        data.bottom = new FormAttachment(anchorXViewer.getControl(), 0, SWT.BOTTOM) ;
        label.setLayoutData(data);
        label.setToolTipText(Messages.StylingConstants_tooltip_anchor);
        anchorYViewer = new ComboExpressionViewer(anchorComposite, SWT.SINGLE);
        anchorYViewer.setOptions(getAnchorList());
        data = new FormData();
        data.left = new FormAttachment(label, 4);
        data.top = new FormAttachment(anchorXViewer.getControl(), 0, SWT.TOP);
        data.bottom = new FormAttachment(anchorXViewer.getControl(), 0, SWT.BOTTOM);
        data.right = new FormAttachment(100, 0);
        anchorYViewer.getControl().setLayoutData(data);
        anchorYViewer.getControl().setToolTipText(Messages.StylingConstants_tooltip_anchor);
       
        label = new Label(graphicComposite, SWT.NONE);
        label.setText(Messages.StylingConstants_label_displacement);
        label.setLayoutData(new GridData(SWT.LEFT, SWT.FILL, false, false));
        label.setToolTipText(Messages.StylingConstants_tooltip_displacement);
        Composite displacementComposite = new Composite(graphicComposite, SWT.NONE);
        displacementComposite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false));
        displacementComposite.setLayout(new FormLayout());
        displacementXViewer = new ComboExpressionViewer(displacementComposite, SWT.SINGLE);
        displacementXViewer.setOptions(getDisplacementList());
        data = new FormData();
        data.left = new FormAttachment(0, 0);
        data.top = new FormAttachment(0, 0);
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.