|
NextApp Echo3 v3.0.b4 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object nextapp.echo.app.Component nextapp.echo.app.Grid
public class Grid
Grid component: a layout container which displays children in a grid. Individual child component cells may be configured to span
multiple rows or columns using GridLayoutData
. May contain zero or more components as children. May not contain
Pane
as children.
Child LayoutData: Children of this component may provide layout information using the
nextapp.echo.app.layout.GridLayoutData
layout data object.
GridLayoutData
,
Serialized FormField Summary | |
---|---|
static int |
DEFAULT_SIZE
Default grid column (or row) size (2). |
static int |
ORIENTATION_HORIZONTAL
Constant value for orientation property indicating cells
should be laid out horizontally and then vertically. |
static int |
ORIENTATION_VERTICAL
Constant value for orientation property indicating cells
should be laid out vertically and then horizontally. |
static java.lang.String |
PROPERTY_BORDER
|
static java.lang.String |
PROPERTY_COLUMN_WIDTH
|
static java.lang.String |
PROPERTY_HEIGHT
|
static java.lang.String |
PROPERTY_INSETS
|
static java.lang.String |
PROPERTY_ORIENTATION
|
static java.lang.String |
PROPERTY_ROW_HEIGHT
|
static java.lang.String |
PROPERTY_SIZE
|
static java.lang.String |
PROPERTY_WIDTH
|
Constructor Summary | |
---|---|
Grid()
Creates a new horizontally-oriented Grid with the
default size (2). |
|
Grid(int size)
Creates a new horizontally-oriented Grid with the
specified size. |
Method Summary | |
---|---|
Border |
getBorder()
Returns the Border . |
Extent |
getColumnWidth(int columnIndex)
Returns the width of the specified column. |
Extent |
getHeight()
Returns the overall height. |
Insets |
getInsets()
Returns the default cell insets. |
int |
getOrientation()
Returns the orientation of the grid (either horizontal or vertical). |
Extent |
getRowHeight(int rowIndex)
Returns the height of the specified row. |
int |
getSize()
Returns the number of columns or rows in the Grid . |
Extent |
getWidth()
Returns the overall width of the grid. |
void |
setBorder(Border newValue)
Sets the Border . |
void |
setColumnWidth(int columnIndex,
Extent newValue)
Sets the width of the specified column. |
void |
setHeight(Extent newValue)
Sets the overall height of the grid. |
void |
setInsets(Insets newValue)
Sets the default cell insets. |
void |
setOrientation(int newValue)
Sets the orientation of the grid (either horizontal or vertical). |
void |
setRowHeight(int rowIndex,
Extent newValue)
Sets the height of the specified row. |
void |
setSize(int newValue)
Sets the number of columns or rows in the grid. |
void |
setWidth(Extent newValue)
Sets the overall width of the grid. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int DEFAULT_SIZE
public static final int ORIENTATION_HORIZONTAL
orientation
property indicating cells
should be laid out horizontally and then vertically.
ORIENTATION_HORIZONTAL
is the default orientation setting.
public static final int ORIENTATION_VERTICAL
orientation
property indicating cells
should be laid out vertically and then horizontally.
public static final java.lang.String PROPERTY_BORDER
public static final java.lang.String PROPERTY_COLUMN_WIDTH
public static final java.lang.String PROPERTY_HEIGHT
public static final java.lang.String PROPERTY_INSETS
public static final java.lang.String PROPERTY_ORIENTATION
public static final java.lang.String PROPERTY_ROW_HEIGHT
public static final java.lang.String PROPERTY_SIZE
public static final java.lang.String PROPERTY_WIDTH
Constructor Detail |
---|
public Grid()
Grid
with the
default size (2).
public Grid(int size)
Grid
with the
specified size.
size
- the number of columnsgetSize()
Method Detail |
---|
public Border getBorder()
Border
.
public Extent getColumnWidth(int columnIndex)
Extent
s with
fixed or percentile units.
columnIndex
- the column index
public Extent getHeight()
Extent
s with
fixed (i.e., not percent) units.
public Insets getInsets()
Insets
value
in their GridLayoutData
.
public int getOrientation()
ORIENTATION_HORIZONTAL
(the default)
specifies that cells should be laid out in horizontal rows
with the size
property specifying the number of columns
per row.
An orientation of ORIENTATION_VERTICAL
specifies that cells should be laid out in vertical columns
with the size
property specifying the number of rows
per column.
ORIENTATION_HORIZONTAL
(the default)ORIENTATION_VERTICAL
setOrientation(int)
public Extent getRowHeight(int rowIndex)
Extent
s with
fixed (i.e., not percent) units.
rowIndex
- the row index
public int getSize()
Grid
.
If the orientation
property is set to
ORIENTATION_HORIZONTAL
, this property represents the
number of columns in the Grid
.
If the orientation
property is set to
ORIENTATION_VERTICAL
, this property represents the
number of rows in the Grid
.
public Extent getWidth()
Extent
s with
fixed or percentile units.
public void setBorder(Border newValue)
Border
.
newValue
- the new borderpublic void setColumnWidth(int columnIndex, Extent newValue)
Extent
s with
fixed or percentile units.
columnIndex
- the column indexnewValue
- the new widthpublic void setHeight(Extent newValue)
Extent
s with
fixed (i.e., not percent) units.
newValue
- the new heightpublic void setInsets(Insets newValue)
Insets
value
in their GridLayoutData
.
newValue
- the new default cell insetspublic void setOrientation(int newValue)
ORIENTATION_HORIZONTAL
(the default)
specifies that cells should be laid out in horizontal rows
with the size
property specifying the number of columns
per row.
An orientation of ORIENTATION_VERTICAL
specifies that cells should be laid out in vertical columns
with the size
property specifying the number of rows
per column.
newValue
- the new orientation, one of the following values:
ORIENTATION_HORIZONTAL
(the default)ORIENTATION_VERTICAL
public void setRowHeight(int rowIndex, Extent newValue)
Extent
s with
fixed (i.e., not percent) units.
rowIndex
- the row indexnewValue
- the new heightpublic void setSize(int newValue)
orientation
property is set to
ORIENTATION_HORIZONTAL
, this property represents the
number of columns in the Grid
.
If the orientation
property is set to
ORIENTATION_VERTICAL
, this property represents the
number of rows in the Grid
.
newValue
- the number of columns or rowsgetSize()
public void setWidth(Extent newValue)
Extent
s with
fixed or percentile units.
newValue
- the new width
|
NextApp Echo3 v3.0.b4 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |