public class GridLayoutData extends CellLayoutData
LayoutData object used to describe how a
Component is rendered within a Grid.| Modifier and Type | Field and Description |
|---|---|
static int |
SPAN_FILL
A constant value for column and row spans indicating that a cell should
fill all remaining cells.
|
| Constructor and Description |
|---|
GridLayoutData()
Creates a new
>GridLayoutData instance with no column span/row span. |
GridLayoutData(int columnSpan,
int rowSpan)
Creates a new
GridLayoutData instance with the specified column and row spans. |
| Modifier and Type | Method and Description |
|---|---|
int |
getColumnSpan()
Returns the column span of the cell.
|
int |
getRowSpan()
Returns the row span of the cell.
|
void |
setColumnSpan(int newValue)
Sets the column span of the cell.
|
void |
setRowSpan(int newValue)
Sets the row span of the cell.
|
getAlignment, getBackground, getBackgroundImage, getInsets, setAlignment, setBackground, setBackgroundImage, setInsetspublic static final int SPAN_FILL
WARNING: This value may ONLY be used for spans in the
direction of the layout of the Grid, i.e., it may only be
used for column-spans if the orientation is horizontal, and it may only
be used for row-spans if the orientation is vertical.
public GridLayoutData()
>GridLayoutData instance with no column span/row span.public GridLayoutData(int columnSpan,
int rowSpan)
GridLayoutData instance with the specified column and row spans.columnSpan - the columnSpan (a value of 1 indicates only one column is occupied)rowSpan - the rowSpan (a value of 1 indicates only one row is occupied)public int getColumnSpan()
public int getRowSpan()
public void setColumnSpan(int newValue)
newValue - the new column spanpublic void setRowSpan(int newValue)
newValue - the new row span