public final class TableRow extends Object
Provides a table row.
Constructor and Description |
---|
TableRow(int rowIndex)
Initializes a new instance of the
TableRow class. |
TableRow(int rowIndex,
Integer height)
Initializes a new instance of the
TableRow class. |
TableRow(int rowIndex,
List<TableCell> cellsCollection)
Initializes a new instance of the
TableRow class. |
TableRow(int rowIndex,
List<TableCell> cellsCollection,
Integer height)
Initializes a new instance of the
TableRow class. |
Modifier and Type | Method and Description |
---|---|
void |
add(TableCell cell)
Adds a
cell to the row. |
void |
addRange(List<TableCell> cellsCollection)
Adds a collection of the cells to the row.
|
boolean |
containsCell(int cellRowIndex,
int cellColumnIndex)
Checks if row contains a cell with specified
cellRowIndex
and cellColumnIndex . |
TableCell |
get_Item(int cellIndex)
Gets the row's cell with the specified index.
|
TableCell |
getCell(int cellRowIndex,
int cellColumnIndex)
Returns a cell by
cellRowIndex and cellColumnIndex . |
int |
getCount()
Gets a count of the cells.
|
Integer |
getHeight()
Gets a height of the row.
|
int |
getRowIndex()
Gets an index of the row.
|
public TableRow(int rowIndex)
Initializes a new instance of the TableRow
class.
rowIndex
- An index of the row.public TableRow(int rowIndex, List<TableCell> cellsCollection)
Initializes a new instance of the TableRow
class.
rowIndex
- An index of the row.cellsCollection
- A collection of the cells.public TableRow(int rowIndex, Integer height)
Initializes a new instance of the TableRow
class.
rowIndex
- An index of the row.height
- A height of the row.public int getRowIndex()
Gets an index of the row.
public Integer getHeight()
Gets a height of the row.
public int getCount()
Gets a count of the cells.
public TableCell get_Item(int cellIndex)
Gets the row's cell with the specified index.
cellIndex
- An index of the cell.public void add(TableCell cell)
Adds a cell
to the row.
cell
- A cell to add.public void addRange(List<TableCell> cellsCollection)
Adds a collection of the cells to the row.
cellsCollection
- A collection of the cells to add.public TableCell getCell(int cellRowIndex, int cellColumnIndex)
Returns a cell by cellRowIndex
and cellColumnIndex
.
cellRowIndex
- An index of the row.cellColumnIndex
- An index of the column.cellRowIndex
and cellColumnIndex
or null if cell was not found.public boolean containsCell(int cellRowIndex, int cellColumnIndex)
Checks if row contains a cell with specified cellRowIndex
and cellColumnIndex
.
cellRowIndex
- An index of the row.cellColumnIndex
- An index of the column.Copyright © 2019. All rights reserved.