public interface GridDataModel extends Pageable
The grid uses it to obtain data and define paging and sorting settings.
Modifier and Type | Method and Description |
---|---|
Object[][] |
getData()
This method returns all the data contained in the model.
|
int |
getEndRow()
This method returns an end row number.
|
Object[] |
getRowData(int rowNumber)
This method returns row data by the specified row number.
|
int |
getSortColumn()
This method returns a sorted column number.
|
int |
getStartRow()
This method returns a start row number.
|
int |
getTotalRowCount()
This method returns total row count value.
|
boolean |
isAscending()
This method defines sorting direction.
|
boolean |
isEmpty()
This method checks whether the data model is empty.
|
void |
setAscending(boolean ascending)
This method sets sort direction.
|
void |
setSortColumn(int sortColumn)
This method sets a number of sort column.
|
getCurrentPageNumber, getDisplayedPages, getEndPage, getPageSize, getStartPage, getTotalPagesNumber, setCurrentPageNumber, setDisplayedPages, setPageSize
int getTotalRowCount()
int getStartRow()
int getEndRow()
int getSortColumn()
boolean isAscending()
It returns true
if direction is ascending.
false
if sorting is descending.Object[] getRowData(int rowNumber)
rowNumber
- is a number of row to be returned.void setSortColumn(int sortColumn)
sortColumn
- a number of sort column.void setAscending(boolean ascending)
ascending
- sort direction.boolean isEmpty()
true
if the model is empty.Object[][] getData()
Copyright © 2008–2013. All rights reserved.