|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mailster.gui.utils.LayoutUtils
public class LayoutUtils
Contains utility methods to create SWT Layouts.
| Constructor Summary | |
|---|---|
LayoutUtils()
|
|
| Method Summary | |
|---|---|
static org.eclipse.swt.layout.FillLayout |
createFillLayout(int type,
int marginHeight,
int marginWidth,
int spacing)
Creates a new FillLayout using the specified settings. |
static org.eclipse.swt.layout.GridData |
createGridData(int horizontalAlignment,
int verticalAlignment,
boolean grabExcessHorizontalSpace,
boolean grabExcessVerticalSpace,
int horizontalSpan,
int verticalSpan)
|
static org.eclipse.swt.layout.GridData |
createGridData(int horizontalAlignment,
int verticalAlignment,
boolean grabExcessHorizontalSpace,
boolean grabExcessVerticalSpace,
int horizontalSpan,
int verticalSpan,
int widthHint,
int heightHint)
Creates a new GridData object using the specified
settings. |
static org.eclipse.swt.layout.GridLayout |
createGridLayout(int columns,
boolean makeColumnsEqualWidth,
int marginHeight,
int marginWidth,
int marginTop,
int marginBottom,
int marginLeft,
int marginRight,
int verticalSpacing,
int horizontalSpacing)
Creates a new GridLayout using the specified settings. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LayoutUtils()
| Method Detail |
|---|
public static org.eclipse.swt.layout.GridLayout createGridLayout(int columns,
boolean makeColumnsEqualWidth,
int marginHeight,
int marginWidth,
int marginTop,
int marginBottom,
int marginLeft,
int marginRight,
int verticalSpacing,
int horizontalSpacing)
GridLayout using the specified settings.
columns - the number of cell columnsmakeColumnsEqualWidth - true to force all columns to
have the same width; false if not to force sam
widthmarginHeight - the number of pixels of vertical margin that will be
placed along the top and bottom edges of the layoutmarginWidth - the number of pixels of horizontal margin that will be
placed along the left and right edges of the layoutmarginTop - the number of pixels of vertical margin that will be
placed along the top edge of the layoutmarginBottom - the number of pixels of vertical margin that will be
placed along the bottom edge of the layoutmarginLeft - the number of pixels of horizontal margin that will be
placed along the left edge of the layoutmarginRight - the number of pixels of horizontal margin that will be
placed along the right edge of the layoutverticalSpacing - the number of pixels between the bottom edge of
one cell and the top edge of its neighbouring cell underneathhorizontalSpacing - the number of pixels between the right edge of
one cell and the left edge of its neighbouring cell to the
right
GridLayout instance according to the specified
settings
public static org.eclipse.swt.layout.GridData createGridData(int horizontalAlignment,
int verticalAlignment,
boolean grabExcessHorizontalSpace,
boolean grabExcessVerticalSpace,
int horizontalSpan,
int verticalSpan,
int widthHint,
int heightHint)
GridData object using the specified
settings.
horizontalAlignment - specifies how controls will be positioned
horizontally within a cell. Possible values are:
verticalAlignment - specifies how controls will be positioned
vertically within a cell. Possible values are:
grabExcessHorizontalSpace - whether cell will be made wide enough to
fit the remaining horizontal spacegrabExcessVerticalSpace - whether cell will be made high enough to
fit the remaining vertical spacehorizontalSpan - the number of column cells that the control will
take upverticalSpan - the number of row cells that the control will take upwidthHint - the preferred width in pixels. This value is the wHint
passed into Control.computeSize(int, int, boolean) to
determine the preferred size of the controlheightHint - the preferred height in pixels. This value is the hHint
passed into Control.computeSize(int, int, boolean) to
determine the preferred size of the control
GridData object according to the specified
settings
public static org.eclipse.swt.layout.GridData createGridData(int horizontalAlignment,
int verticalAlignment,
boolean grabExcessHorizontalSpace,
boolean grabExcessVerticalSpace,
int horizontalSpan,
int verticalSpan)
public static org.eclipse.swt.layout.FillLayout createFillLayout(int type,
int marginHeight,
int marginWidth,
int spacing)
FillLayout using the specified settings.
type - specifies how controls will be positioned within the layout.
Possible values are:
marginHeight - the number of pixels of vertical margin that will be
placed along the top and bottom edges of the layoutmarginWidth - the number of pixels of horizontal margin that will be
placed along the left and right edges of the layoutspacing - the number of pixels between the edge of one cell and the
edge of its neighbouring cell
FillLayout instance according to the specified
settings
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||