Package org.eclipse.swt.widgets

Examples of org.eclipse.swt.widgets.Layout


    control = new Composite(parent, SWT.NO_BACKGROUND);
    control.setVisible(false);
   
    // Attach a layout to the dummy composite. This is used to make the preferred
    // size of the dummy match the preferred size of the target.
    control.setLayout(new Layout() {
      protected void layout (Composite composite, boolean flushCache) {
          ProxyControl.this.layout();
          // does nothing. The bounds of the target are updated by the controlListener
      }
     
View Full Code Here


        CellData tableData = new CellData().align(SWT.FILL, SWT.FILL).setHint(
                CellData.OVERRIDE, width, height);

        editorsTable.setLayoutData(tableData);
        editorsTable.setLayout(new Layout() {
            protected Point computeSize(Composite composite, int wHint,
                    int hHint, boolean flushCache) {
                return new Point(width, height);
            }
View Full Code Here

    addResizeListener( facade );
    return facade;
  }

  private void addLayoutDataWithExclude( Composite facade ) {
    Layout layout = composite.getLayout();
    if( layout instanceof RowLayout ) {
      addExcludedRowData( facade );
    } else if( layout instanceof GridLayout ) {
      addExcludedGridData( facade );
    } else {
View Full Code Here

  /***************************************************************************/

  public static void fillIntoGridLayout(Composite parent, Label label, Control control,
          int widthHint, int heightHint, boolean grabH, int indentLeft) {
    Layout layout = parent.getLayout();
    if (layout instanceof GridLayout) {
      GridData gd;
      int span = ((GridLayout) layout).numColumns;
      int colspan = span - 1;
      gd = new GridData();
View Full Code Here

    }
  } // fillIntoGridLayout

  public static void fillIntoTableLayout(Composite parent, Label label, Control control,
      int heightHint, boolean grabH, int indentLeft) {
    Layout layout = parent.getLayout();

    if (layout instanceof TableWrapLayout) {
      TableWrapData td;
      int span = ((TableWrapLayout) layout).numColumns;
      int colspan = span - 1;
View Full Code Here

    }
  } // fillIntoTableLayout

  public static void fillIntoGridOrTableLayout(Composite parent, Label label, Control control,
          int widthHint, int heightHint, boolean grabH, int indentLeft) {
    Layout layout = parent.getLayout();
    if (layout instanceof GridLayout) {
      fillIntoGridLayout(parent, label, control, widthHint, heightHint, grabH, indentLeft);
    } else if (layout instanceof TableWrapLayout) {
      fillIntoTableLayout(parent, label, control, heightHint, grabH, indentLeft);
    }
View Full Code Here

   
    public static void fillIntoGridLayout (Composite parent,
                Label label, Control control,
                int widthHint, int heightHint)
    {
      Layout layout = parent.getLayout();
      if (layout instanceof GridLayout) {
        GridData gd;
        int span = ((GridLayout) layout).numColumns;
        int tspan = span - 1;
        gd = new GridData();
View Full Code Here

    } // fillIntoGridLayout

  public static void fillIntoTableLayout (Composite parent,
              Label label, Control control, int heightHint)
  {
    Layout layout = parent.getLayout();

    if (layout instanceof TableWrapLayout) {
      TableWrapData td;
      int span = ((TableWrapLayout) layout).numColumns;
      int tspan = span - 1;
View Full Code Here

    
  public static void fillIntoGridOrTableLayout (Composite parent,
      Label label, Control control,
      int widthHint, int heightHint)
  {
    Layout layout = parent.getLayout();
    if (layout instanceof GridLayout) {
      fillIntoGridLayout (parent, label, control, widthHint, heightHint);
    } else if (layout instanceof TableWrapLayout) {
      fillIntoTableLayout (parent, label, control, heightHint);
    }
View Full Code Here

    }
   
    @Override
    protected Control createDialogArea(Composite parent) {
      final Composite area = new Composite(parent, SWT.NULL);
      Layout layout = new RowLayout(SWT.VERTICAL);
      area.setLayout(layout);
     
      // add a composite in the dialog for every detected problem type
      for (ProblemType problemType : nonDuplicateProblemTypes) {
        switch (problemType) {
View Full Code Here

TOP

Related Classes of org.eclipse.swt.widgets.Layout

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.