RECORD
- the smallest data unit of this data gridpublic interface DataGrid<RECORD>
Each grid consists of its record. It should be page fragment, which will be then returned as a properly initialized object.
It is solely on the end user how the implementations of the RECORD would look like. For example it can return the text of the particular grid's record
Note 1: Grid does not take into account pagination. Thus one has to switch to a different page manually in order to access all records. All indexes used by methods are relative to one page.
Note 2: that one can use org.richfaces.fragment.common.NullFragment as a Null Object pattern for RECORD generic type.
Modifier and Type | Method and Description |
---|---|
List<RECORD> |
getAllVisibleRecords()
Returns all records currently rendered in this grid.
|
int |
getNumberOfColumns()
Returns number of the columns in this data grid.
|
int |
getNumberOfRecords()
Returns number of records on the current page.
|
int |
getNumberOfRows()
Returns number of the rows in this data grid.
|
RECORD |
getRecord(int n)
Return a particular record from actual page.
|
List<RECORD> |
getRecordsInRow(int rowIndex)
Returns all RECORDs in a particular row.
|
List<RECORD> getRecordsInRow(int rowIndex)
rowIndex
- zero based index of the row, from which all records will be returnedList<RECORD> getAllVisibleRecords()
RECORD getRecord(int n)
n
- zero based index of the record to be returnedint getNumberOfRows()
int getNumberOfColumns()
int getNumberOfRecords()
Copyright © 2014 JBoss by Red Hat. All Rights Reserved.