Package org.eclipse.swt.custom

Examples of org.eclipse.swt.custom.StackLayout


  @Before
  public void setUp() {
    display = new Display();
    Shell shell = new Shell( display );
    shell.setLayout( new StackLayout() );
    RemoteUI uiRenderer = mock( RemoteUI.class );
    when( uiRenderer.getPageParent() ).thenReturn( shell );
    controller = new Controller( uiRenderer, mock( UIDescriptor.class ) );
  }
View Full Code Here


    /* contributed provider preferences. */
    fGroup= new Composite(groupComp, SWT.NONE);
    gd= new GridData(SWT.FILL, SWT.FILL, true, true);
    gd.horizontalIndent= 10;
    fGroup.setLayoutData(gd);
    fStackLayout= new StackLayout();
    fGroup.setLayout(fStackLayout);

    return composite;
  }
View Full Code Here

   * @see IWorkbenchPart#createPartControl(org.eclipse.swt.widgets.Composite)
   */
  public void createPartControl(Composite parent) {

    fParent= new Composite(parent, SWT.NONE);
    fStackLayout= new StackLayout();
    fParent.setLayout(fStackLayout);

    fDefaultComposite= new Composite(fParent, SWT.NONE);
    fDefaultComposite.setLayout(new FillLayout());
    super.createPartControl(fDefaultComposite);
View Full Code Here

     * is shown or a label notifying the user that a single device layout should
     * be selected.
     */
    private void createDisplayArea() {
        displayArea = new Composite(this, SWT.NONE);
        displayAreaLayout = new StackLayout();
        displayArea.setLayout(displayAreaLayout);
        displayArea.setBackground(getDisplay().
                getSystemColor(SWT.COLOR_LIST_BACKGROUND));

        createMessagePage(displayArea);
View Full Code Here

    }

    // javadoc inherited
    protected void createPartControlImpl(Composite parent) {
        displayArea = new Composite(parent, SWT.NONE);
        displayAreaLayout = new StackLayout();
        displayArea.setLayout(displayAreaLayout);
        displayArea.setBackground(parent.getDisplay().
                getSystemColor(SWT.COLOR_LIST_BACKGROUND));

        messagePage = ControlUtils.createMessageComposite(displayArea,
View Full Code Here

        }
    }

    public void createPartControl(Composite composite) {
        displayArea = new Composite(composite, SWT.NONE);
        displayAreaLayout = new StackLayout();
        displayArea.setLayout(displayAreaLayout);
        displayArea.setBackground(composite.getDisplay().
                getSystemColor(SWT.COLOR_LIST_BACKGROUND));

        createMessagePage(displayArea);
View Full Code Here

        gd4.grabExcessVerticalSpace = true;
        gd4.grabExcessHorizontalSpace = true;
        gd4.heightHint = PREVIEW_HEIGHT_HINT;
        gd4.horizontalSpan = 1;
        stackComposite.setLayoutData(gd4);
        stack = new StackLayout();
        stackComposite.setLayout(stack);

        // Create the initial unavailable preview.
        unavailablePreview = new UnavailablePreview(stackComposite, SWT.NONE);
View Full Code Here

                        null);
        GridData data = new GridData(GridData.FILL_HORIZONTAL);
        section.setLayoutData(data);

        displayArea = new Composite(section, SWT.NONE);
        displayAreaLayout = new StackLayout();
        displayArea.setLayout(displayAreaLayout);

        messageLabel = new Label(displayArea, SWT.LEFT);
        messageLabel.setBackground(getDisplay().
                getSystemColor(SWT.COLOR_LIST_BACKGROUND));
View Full Code Here

        // create the container for the StyleCategoryComposite panels
        categoryContainer = new Composite(scroller, SWT.NONE);
        scroller.setContent(categoryContainer);

        categoryStack = new StackLayout();
        categoryStack.marginHeight = 0;
        categoryStack.marginWidth = 0;

        categoryContainer.setLayout(categoryStack);
        categoryContainer.setBackground(getDisplay().
View Full Code Here

    }

    // Javadoc inherited
    public void createControl(Composite composite) {
        displayArea = new Composite(composite, SWT.NONE);
        displayAreaLayout = new StackLayout();
        displayArea.setLayout(displayAreaLayout);
        displayArea.setBackground(composite.getDisplay().
                getSystemColor(SWT.COLOR_LIST_BACKGROUND));

        createMessagePage(displayArea);
View Full Code Here

TOP

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

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.