public interface TableComponent
DataTableComponent represents a table.
It consist from cells, which are joined into rows and columns.
| Modifier and Type | Method and Description |
|---|---|
<T> List<Cell<T>> |
findCells(CellFunction<T> function) |
<T> List<Column<T>> |
findColumns(ColumnFunction<T> function) |
List<Row> |
findRow(RowFunction function) |
List<Row> |
getAllRows() |
<T> Cell<T> |
getCell(Row row,
Column<T> column)
Returns the particular cell, the cell with coordinations determined by given row and column.
|
Row |
getFirstRow()
Returns the first row of the table, the header row if available, is not counted.
|
Row |
getLastRow()
Returns the last row of the table, the footer row if available, is not counted.
|
int |
getNumberOfCells()
Returns total number of cells in this particular table.
|
int |
getNumberOfColumns()
Returns the total number of columns in this particular table.
|
int |
getNumberOfRows()
Returns the total number of rows in this particular table.
|
Row |
getRow(int order)
Returns the row with the order determined by given param
order. |
Footer |
getTableFooter()
Returns the list of all footer cells, in other words the whole table footer.
|
Header |
getTableHeader()
Returns the list of all header cells, in other words the whole table header.
|
void |
setDateScroller(DataScrollerComponent scroller)
Associates this data table with a given data scroller
|
void setDateScroller(DataScrollerComponent scroller)
scroller - the scroller to associate this table withint getNumberOfRows()
Returns the total number of rows in this particular table.
The rowspan html atribute is not considered, in other words the row with rowspan equals 2 is
considered as one row.
int getNumberOfCells()
Returns total number of cells in this particular table.
<T> List<Cell<T>> findCells(CellFunction<T> function)
List<Row> findRow(RowFunction function)
<T> List<Column<T>> findColumns(ColumnFunction<T> function)
int getNumberOfColumns()
Returns the total number of columns in this particular table.
The colspan html atribute is not considered, in other words the column with colspan equals 2 is
considered as one column.
<T> Cell<T> getCell(Row row, Column<T> column)
row - column - Header getTableHeader()
Footer getTableFooter()
Row getFirstRow()
Row getLastRow()
Row getRow(int order)
Returns the row with the order determined by given param order.
Rows are indexed from 0. The header row if available is not counted.
order - the order of the rowCopyright © 2013 JBoss by Red Hat. All Rights Reserved.