|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.ecl.datepicker.util.LayoutHelper
public final class LayoutHelper
The utility-class that helps to create layouts.
| Method Summary | |
|---|---|
static FillLayout |
createFillLayout(int marginWidth,
int marginHeight)
Constructs a new instance of the row layout class given the type. |
static FillLayout |
createFillLayout(int type,
int marginWidth,
int marginHeight)
Constructs a new instance of the row layout class given the type. |
static GridLayout |
createGridLayout(int numColumns,
boolean makeColumnsEqualWidth,
int marginWidth,
int marginHeight,
int horizontalSpacing,
int verticalSpacing)
Constructs a new instance of the grid layout class given the number of columns, and whether or not the columns should be forced to have the same width. |
static GridLayout |
createGridLayout(int marginWidth,
int marginHeight,
int horizontalSpacing,
int verticalSpacing)
Constructs a new instance of the grid layout class. |
static RowLayout |
createRowLayout(int type,
int marginLeft,
int marginTop,
int marginRight,
int marginBottom)
Constructs a new instance of the row layout class given the type. |
static RowLayout |
createRowLayout(int type,
int marginWidth,
int marginHeight,
int marginLeft,
int marginTop,
int marginRight,
int marginBottom)
Constructs a new instance of the row layout class given the type. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static FillLayout createFillLayout(int marginWidth,
int marginHeight)
marginWidth - specifies the number of pixels of horizontal margin that will
be placed along the left and right edges of the layoutmarginHeight - specifies the number of pixels of vertical margin that will be
placed along the top and bottom edges of the layout.
public static FillLayout createFillLayout(int type,
int marginWidth,
int marginHeight)
type - the type of row layoutmarginWidth - specifies the number of pixels of horizontal margin that will
be placed along the left and right edges of the layoutmarginHeight - specifies the number of pixels of vertical margin that will be
placed along the top and bottom edges of the layout.
public static GridLayout createGridLayout(int numColumns,
boolean makeColumnsEqualWidth,
int marginWidth,
int marginHeight,
int horizontalSpacing,
int verticalSpacing)
numColumns - the number of columns in the gridmakeColumnsEqualWidth - whether or not the columns will have equal widthmarginWidth - the number of pixels of horizontal margin that will be placed
along the left and right edges of the layoutmarginHeight - the number of pixels of vertical margin that will be placed
along the top and bottom edges of the layouthorizontalSpacing - the number of pixels between the right dock of one cell and
the left dock of its neighbouring cell to the rightverticalSpacing - the number of pixels between the bottom dock of one cell and
the top dock of its neighbouring cell underneath
public static GridLayout createGridLayout(int marginWidth,
int marginHeight,
int horizontalSpacing,
int verticalSpacing)
marginWidth - the number of pixels of horizontal margin that will be placed
along the left and right edges of the layoutmarginHeight - the number of pixels of vertical margin that will be placed
along the top and bottom edges of the layouthorizontalSpacing - the number of pixels between the right dock of one cell and
the left dock of its neighbouring cell to the rightverticalSpacing - the number of pixels between the bottom dock of one cell and
the top dock of its neighbouring cell underneath
public static RowLayout createRowLayout(int type,
int marginLeft,
int marginTop,
int marginRight,
int marginBottom)
type - the type of row layoutmarginLeft - specifies the number of pixels of horizontal margin that will
be placed along the left dock of the layout.marginTop - specifies the number of pixels of vertical margin that will be
placed along the top dock of the layout.marginRight - specifies the number of pixels of horizontal margin that will
be placed along the right dock of the layout.marginBottom - specifies the number of pixels of vertical margin that will be
placed along the bottom dock of the layout.
RowLayout
public static RowLayout createRowLayout(int type,
int marginWidth,
int marginHeight,
int marginLeft,
int marginTop,
int marginRight,
int marginBottom)
type - the type of row layoutmarginWidth - specifies the number of pixels of horizontal margin that will
be placed along the left and right edges of the layoutmarginHeight - specifies the number of pixels of vertical margin that will be
placed along the top and bottom edges of the layout.marginLeft - specifies the number of pixels of horizontal margin that will
be placed along the left dock of the layout.marginTop - specifies the number of pixels of vertical margin that will be
placed along the top dock of the layout.marginRight - specifies the number of pixels of horizontal margin that will
be placed along the right dock of the layout.marginBottom - specifies the number of pixels of vertical margin that will be
placed along the bottom dock of the layout.
RowLayout
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||