public interface ITableContentProvider<HEADER,HEADER_CELL,ROW,ROW_CELL>
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Called when the content provider is no longer required by the table.
|
ROW |
getFirstSelectedRow()
Returns the first selected row for single selection tables.
|
HEADER |
getHeader()
Gets the header object.
|
HEADER_CELL[] |
getHeaderCells(HEADER header)
Gets the header cells.
|
TCell |
getRowCell(ROW_CELL cell,
int columnIndex,
int rowIndex)
Gets the row cell information.
|
ROW_CELL[] |
getRowCells(ROW row)
Gets the cells for a row object.
|
ROW[] |
getRows()
Gets the row objects.
|
int |
getRowStyle(ROW row,
int filteredRowIndex)
Gets the row style.
|
boolean |
isRowCellSelected(ROW_CELL cell)
Returns if the cell is selected or not.
|
boolean |
isRowSelected(ROW row)
Returns if the row is selected or not.
|
void |
onCellUpdated(ROW_CELL cell,
TCell value)
Cell update event.
|
void |
onInitialize(UITable table)
Called to initialize the content provider for the UITable instance.
|
void |
onReinitialized()
This method is called when the table needs re-initialization due to
e.g.
|
void |
onRowSelection(TableRow tableRow,
ROW row,
boolean on)
Called when the row selection state is changed.
|
void onInitialize(UITable table)
void onReinitialized()
void dispose()
HEADER getHeader()
HEADER_CELL[] getHeaderCells(HEADER header)
header
- The header object, never null.ROW[] getRows()
ROW_CELL[] getRowCells(ROW row)
row
- The row object.boolean isRowSelected(ROW row)
ROW getFirstSelectedRow()
int getRowStyle(ROW row, int filteredRowIndex)
row
- The row index.filteredRowIndex
- The filtered row index, not necessarily the same at the real row index.void onRowSelection(TableRow tableRow, ROW row, boolean on)
tableRow
- The table row affected.row
- The row whose selection state changed.on
- The new selection state.boolean isRowCellSelected(ROW_CELL cell)
cell
- The cell.TCell getRowCell(ROW_CELL cell, int columnIndex, int rowIndex)
cell
- The cell object.columnIndex
- The column index.rowIndex
- The row index before filtering.iizi® is a registered trademark of Mindus SARL. © Copyright Mindus SARL, 2020. All rights reserved.