Package org.eclipse.swt.widgets

Examples of org.eclipse.swt.widgets.Composite.layout()


            resize(parent);

            // If the parent was resized, then it has already triggered a
            // layout. Otherwise, we need to manually force it to layout again.
            if (currentBounds.equals(parent.getBounds())) {
                parent.layout(true);
            }
        }
    }
}
View Full Code Here


      sourceViewer.setSelectedRange(selection.x , selection.y);
      sourceViewer.setTopIndex(topIndex);

      if (parent instanceof Composite) {
        Composite composite= (Composite) parent;
        composite.layout(true);
      }

      parent.setRedraw(true);

View Full Code Here

        GridData labelData = new GridData(GridData.FILL_HORIZONTAL);
        label.setLayoutData(labelData);
        addListBuilder(topLevel);
        addErrorMessageArea(topLevel);
        validateDialog();
        topLevel.layout();
        return topLevel;
    }

    /**
     * Sets the selection that this dialog will use.
View Full Code Here

        layoutGrid.marginWidth = MARGIN_WIDTH;

        topLevel.setLayout(layoutGrid);
        addFallbackComposite(topLevel);
        addNewDeviceNameComposite(topLevel);
        topLevel.layout();
        setControl(topLevel);
        validatePage();
        setPageComplete(isPageComplete());
    }
View Full Code Here

    }

    private void refresh(ScrolledComposite scroller) {
        Composite scrollable = (Composite)scroller.getContent();
        scrollable.setSize(scrollable.computeSize(SWT.DEFAULT, SWT.DEFAULT));
        scrollable.layout();
        scroller.setMinSize(scroller.computeSize(SWT.DEFAULT, SWT.DEFAULT));
    }

    /**
     * Update the attributes composite's 2 column layout with the specified
View Full Code Here

        layoutGrid.marginWidth = MARGIN_WIDTH;

        topLevel.setLayout(layoutGrid);
        // create the list and text control
        addListBuilder(topLevel);
        topLevel.layout();
        setControl(topLevel);

        // set the page complete status
        setPageComplete(true);
    }
View Full Code Here

                        context);
        TACPatterns.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));

        patternContainer.setSize(patternContainer.
                computeSize(SWT.DEFAULT, SWT.DEFAULT));
        patternContainer.layout();
        controlsScroller.setMinSize(
                patternContainer.computeSize(SWT.DEFAULT, SWT.DEFAULT));

        controlsScroller.setContent(patternContainer);
View Full Code Here

        topLevelGrid.marginWidth = MARGIN_WIDTH;
        topLevel.setLayout(topLevelGrid);
        addListBuilder(topLevel);
        addErrorMessageArea(topLevel);
        validateDialog();
        topLevel.layout();
        return topLevel;
    }

    /**
     * Creates and adds the DialogListBuilder with a ModifyListener to listen
View Full Code Here

        Composite topLevel = (Composite) super.createDialogArea(parent);
        topLevel.setLayout(topLevelGrid);
        addListBuilder(topLevel);
        addErrorMessageArea(topLevel);
        validateDialog();
        topLevel.layout();
        return topLevel;
    }

    /**
     * Sets the selection that this dialog will use.
View Full Code Here

        layoutGrid.marginWidth = 0;
        topLevel.setLayout(layoutGrid);

        // create the widgets
        addControls(topLevel);
        topLevel.layout();
        setControl(topLevel);

        // validate this wizard page
        validatePage();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.