org.eclipse.cdt.debug.mi.internal.ui.dialogfields
Class LayoutUtil

java.lang.Object
  extended by org.eclipse.cdt.debug.mi.internal.ui.dialogfields.LayoutUtil

public class LayoutUtil
extends java.lang.Object


Constructor Summary
LayoutUtil()
           
 
Method Summary
static void doDefaultLayout(org.eclipse.swt.widgets.Composite parent, DialogField[] editors, boolean labelOnTop)
          Creates a composite and fills in the given editors.
static void doDefaultLayout(org.eclipse.swt.widgets.Composite parent, DialogField[] editors, boolean labelOnTop, int minWidth, int minHeight)
          Creates a composite and fills in the given editors.
static void doDefaultLayout(org.eclipse.swt.widgets.Composite parent, DialogField[] editors, boolean labelOnTop, int minWidth, int minHeight, int marginWidth, int marginHeight)
          Deprecated.  
static int getNumberOfColumns(DialogField[] editors)
          Calculates the number of columns needed by field editors
static void setHeigthHint(org.eclipse.swt.widgets.Control control, int heigthHint)
          Sets the heigthHint hint of a control.
static void setHorizontalGrabbing(org.eclipse.swt.widgets.Control control)
          Sets the horizontal indent of a control.
static void setHorizontalIndent(org.eclipse.swt.widgets.Control control, int horizontalIndent)
          Sets the horizontal indent of a control.
static void setHorizontalSpan(org.eclipse.swt.widgets.Control control, int span)
          Sets the span of a control.
static void setWidthHint(org.eclipse.swt.widgets.Control control, int widthHint)
          Sets the width hint of a control.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LayoutUtil

public LayoutUtil()
Method Detail

getNumberOfColumns

public static int getNumberOfColumns(DialogField[] editors)
Calculates the number of columns needed by field editors


doDefaultLayout

public static void doDefaultLayout(org.eclipse.swt.widgets.Composite parent,
                                   DialogField[] editors,
                                   boolean labelOnTop)
Creates a composite and fills in the given editors.

Parameters:
labelOnTop - Defines if the label of all fields should be on top of the fields

doDefaultLayout

public static void doDefaultLayout(org.eclipse.swt.widgets.Composite parent,
                                   DialogField[] editors,
                                   boolean labelOnTop,
                                   int minWidth,
                                   int minHeight)
Creates a composite and fills in the given editors.

Parameters:
labelOnTop - Defines if the label of all fields should be on top of the fields
minWidth - The minimal width of the composite
minHeight - The minimal height of the composite

doDefaultLayout

public static void doDefaultLayout(org.eclipse.swt.widgets.Composite parent,
                                   DialogField[] editors,
                                   boolean labelOnTop,
                                   int minWidth,
                                   int minHeight,
                                   int marginWidth,
                                   int marginHeight)
Deprecated. 

Creates a composite and fills in the given editors.

Parameters:
labelOnTop - Defines if the label of all fields should be on top of the fields
minWidth - The minimal width of the composite
minHeight - The minimal height of the composite
marginWidth - The margin width to be used by the composite
marginHeight - The margin height to be used by the composite

setHorizontalSpan

public static void setHorizontalSpan(org.eclipse.swt.widgets.Control control,
                                     int span)
Sets the span of a control. Assumes that GridData is used.


setWidthHint

public static void setWidthHint(org.eclipse.swt.widgets.Control control,
                                int widthHint)
Sets the width hint of a control. Assumes that GridData is used.


setHeigthHint

public static void setHeigthHint(org.eclipse.swt.widgets.Control control,
                                 int heigthHint)
Sets the heigthHint hint of a control. Assumes that GridData is used.


setHorizontalIndent

public static void setHorizontalIndent(org.eclipse.swt.widgets.Control control,
                                       int horizontalIndent)
Sets the horizontal indent of a control. Assumes that GridData is used.


setHorizontalGrabbing

public static void setHorizontalGrabbing(org.eclipse.swt.widgets.Control control)
Sets the horizontal indent of a control. Assumes that GridData is used.