Package org.eclipse.swt.widgets

Examples of org.eclipse.swt.widgets.Layout


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

  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 void widgetDefaultSelected(SelectionEvent e) {}
    });
  }
 
  private void fillIntoGrid(Composite parent) {
    Layout layout = parent.getLayout();
    if (layout instanceof GridLayout) {
      int span = ((GridLayout) layout).numColumns;
     
      GridData gd;
      if (label != null) {
View Full Code Here

      public void widgetDefaultSelected(SelectionEvent e) {}
    });
  }
 
  private void fillIntoGrid(Composite parent) {
    Layout layout = parent.getLayout();
    if (layout instanceof GridLayout) {
      int span = ((GridLayout) layout).numColumns;
     
      GridData gd;
      if (label != null) {
View Full Code Here

    if (browse != null)
      browse.setEnabled(editable);
  }

  private void fillIntoGrid(Composite parent, int indent, int tcolspan) {
    Layout layout = parent.getLayout();
    int tspan;
    if (layout instanceof GridLayout) {
      int span = ((GridLayout) layout).numColumns;
      if (tcolspan > 0)
        tspan = tcolspan;
View Full Code Here

   * @param left
   * @param vertical
   * @param horizontal
   */
  public static void trimComposite(Composite composite, int top, int right, int bottom, int left, int vertical, int horizontal) {
    Layout raw = composite.getLayout();
    if (raw instanceof GridLayout) {
      GridLayout layout = (GridLayout)raw;
      layout.marginTop = top;
      layout.marginRight = right;
      layout.marginBottom = bottom;
View Full Code Here

   * @param right
   * @param bottom
   * @param left
   */
  public static void trimComposite(Composite composite, int top, int right, int bottom, int left) {
    Layout raw = composite.getLayout();
    if (raw instanceof GridLayout) {
      GridLayout layout = (GridLayout)raw;
      layout.marginTop = top;
      layout.marginRight = right;
      layout.marginBottom = bottom;
View Full Code Here

   * @param top
   * @param rightleft
   * @param bottom
   */
  public static void trimComposite(Composite composite, int top, int rightleft, int bottom) {
    Layout raw = composite.getLayout();
    if (raw instanceof GridLayout) {
      GridLayout layout = (GridLayout)raw;
      layout.marginTop = top;
      layout.marginRight = rightleft;
      layout.marginBottom = bottom;
View Full Code Here

   * @param composite
   * @param topbottom
   * @param rightleft
   */
  public static void trimComposite(Composite composite, int topbottom, int rightleft) {
    Layout raw = composite.getLayout();
    if (raw instanceof GridLayout) {
      GridLayout layout = (GridLayout)raw;
      layout.marginTop = topbottom;
      layout.marginRight = rightleft;
      layout.marginBottom = topbottom;
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.