|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.faces.model.DataModel<E>
com.liferay.faces.util.model.OnDemandDataModel<E>
public abstract class OnDemandDataModel<E>
| Constructor Summary | |
|---|---|
OnDemandDataModel()
|
|
| Method Summary | |
|---|---|
abstract int |
countRows()
Returns the total number of rows. |
abstract Collection<E> |
findRows(int startRow,
int finishRow,
List<SortCriterion> sortCritieria)
Returns a list of rows that is a subset of the entire list of rows. |
int |
getFinishRowIndex()
Returns the index of the finishing row associated with the underlying wrapped data. |
int |
getRowCount()
|
E |
getRowData()
|
int |
getRowIndex()
|
int |
getRowsPerPage()
Returns the number of rows-per-page associated with the pagination. |
List<SortCriterion> |
getSortCriteria()
|
int |
getStartRowIndex()
Returns the index of the starting row associated with the underlying wrapped data. |
List<E> |
getWrappedData()
|
boolean |
isRowAvailable()
|
void |
reset()
Resets (clears) the underlying wrapped data. |
void |
setFinishRowIndex(int finishRowIndex)
Sets the finishing row associated with the underlying wrapped data. |
void |
setRowCount(int rowCount)
Sets the rowCount to the specified value. |
void |
setRowIndex(int rowIndex)
|
void |
setRowsPerPage(int rowsPerPage)
Sets the number of rows-per-page associated with the pagination. |
void |
setSortCriteria(List<SortCriterion> sortCriteria)
|
void |
setStartRowIndex(int startRowIndex)
Sets the starting row associated with the underlying wrapped data. |
void |
setWrappedData(Object wrappedData)
|
| Methods inherited from class javax.faces.model.DataModel |
|---|
addDataModelListener, getDataModelListeners, iterator, removeDataModelListener |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OnDemandDataModel()
| Method Detail |
|---|
public abstract int countRows()
public abstract Collection<E> findRows(int startRow,
int finishRow,
List<SortCriterion> sortCritieria)
startRow - The starting row index.finishRow - The finishing row index.sortCritieria - The sort criteria that is to be applied to the order of the results.public void reset()
public boolean isRowAvailable()
isRowAvailable in class javax.faces.model.DataModel<E>javax.faces.model.DataModel#isRowAvailable()}public int getFinishRowIndex()
public void setFinishRowIndex(int finishRowIndex)
public int getRowCount()
getRowCount in class javax.faces.model.DataModel<E>javax.faces.model.DataModel#getRowCount()}public void setRowCount(int rowCount)
public E getRowData()
getRowData in class javax.faces.model.DataModel<E>javax.faces.model.DataModel#getRowData()}public int getRowIndex()
getRowIndex in class javax.faces.model.DataModel<E>javax.faces.model.DataModel#getRowIndex()}public void setRowIndex(int rowIndex)
setRowIndex in class javax.faces.model.DataModel<E>javax.faces.model.DataModel#setRowIndex(int)}public int getRowsPerPage()
Paginated
getRowsPerPage in interface PaginatedPaginated#getRowsPerPage()}public void setRowsPerPage(int rowsPerPage)
Paginated
setRowsPerPage in interface PaginatedPaginated#setRowsPerPage(int)}public List<SortCriterion> getSortCriteria()
getSortCriteria in interface SortableSortable#getSortCriteria()}public void setSortCriteria(List<SortCriterion> sortCriteria)
setSortCriteria in interface SortableSortable#setSortCriteria(java.util.List)}public int getStartRowIndex()
public void setStartRowIndex(int startRowIndex)
public List<E> getWrappedData()
getWrappedData in class javax.faces.model.DataModel<E>javax.faces.model.DataModel#getWrappedData()}public void setWrappedData(Object wrappedData)
setWrappedData in class javax.faces.model.DataModel<E>javax.faces.model.DataModel#setWrappedData(Object)}
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||