|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.faces.model.DataModel<E>
org.portletfaces.liferay.faces.model.RowMarkerDataModel<E>
org.portletfaces.liferay.faces.model.LazyDataModel<E>
public abstract class LazyDataModel<E>
This abstract class provides the ability to supply JSF UI components with a DataModel that
loads data in a lazy (on-demand) manner. It also provides for the ability to mark underlying rows for deletion.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.portletfaces.liferay.faces.model.RowMarkerDataModel |
|---|
RowMarkerDataModel.RowMarksObserver |
| Field Summary |
|---|
| Fields inherited from class org.portletfaces.liferay.faces.model.RowMarkerDataModel |
|---|
allRowsMarked |
| Constructor Summary | |
|---|---|
LazyDataModel()
|
|
| Method Summary | |
|---|---|
abstract int |
countRows()
Returns the total number of rows. |
abstract java.util.List<E> |
findRows(int startRow,
int finishRow)
Returns a list of rows that is a subset of the entire list of rows. |
int |
getRowCount()
|
E |
getRowData()
|
int |
getRowIndex()
|
int |
getRowsPerPage()
Returns the number of rows-per-page associated with the pagination. |
java.lang.String |
getSortColumn()
|
java.util.List<E> |
getWrappedData()
|
int |
getWrappedDataFinishRowIndex()
Returns the index of the finishing row associated with the underlying wrapped data. |
int |
getWrappedDataStartRowIndex()
Returns the index of the starting row associated with the underlying wrapped data. |
E |
getWrappedRow(java.lang.Object primaryKey)
Searches through the cached/wrapped data for the row that corresponds to the specified primaryKey and returns the row. |
boolean |
isReset()
Indicates whether or not the underlying cache of rows has been reset/cleared. |
boolean |
isRowAvailable()
|
boolean |
isSortAscending()
|
void |
reset()
Resets (clears) the underlying cache of rows. |
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 |
setSortAscending(boolean sortAscending)
|
void |
setSortColumn(java.lang.String sortColumn)
|
void |
setWrappedData(java.lang.Object wrappedData)
|
void |
setWrappedDataFinishRowIndex(int wrappedDataFinishRowIndex)
Sets the finishing row associated with the underlying wrapped data. |
void |
setWrappedDataStartRowIndex(int wrappedDataStartRowIndex)
Sets the starting row associated with the underlying wrapped data. |
| Methods inherited from class org.portletfaces.liferay.faces.model.RowMarkerDataModel |
|---|
deleteMarkedRows, deleteRow, getPrimaryKey, getRowMarks, isAllRowsMarked, setAllRowsMarked, setRowMarks |
| 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 LazyDataModel()
| Method Detail |
|---|
public abstract int countRows()
public abstract java.util.List<E> findRows(int startRow,
int finishRow)
startRow - The starting row index.finishRow - The finishing row index.public void reset()
RowMarkerDataModel
reset in class RowMarkerDataModel<E>RowMarkerDataModel#reset()}public boolean isRowAvailable()
isRowAvailable in class javax.faces.model.DataModel<E>javax.faces.model.DataModel#isRowAvailable()}public boolean isSortAscending()
isSortAscending in interface SortableSortable#isSortAscending()}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 void setSortAscending(boolean sortAscending)
setSortAscending in interface SortableSortable#setSortAscending(boolean)}public java.lang.String getSortColumn()
getSortColumn in interface SortableSortable#getSortColumn()}public void setSortColumn(java.lang.String sortColumn)
setSortColumn in interface SortableSortable#setSortColumn(String)}public boolean isReset()
RowMarkerDataModel
isReset in class RowMarkerDataModel<E>public java.util.List<E> getWrappedData()
getWrappedData in class javax.faces.model.DataModel<E>javax.faces.model.DataModel#getWrappedData()}public void setWrappedData(java.lang.Object wrappedData)
setWrappedData in class javax.faces.model.DataModel<E>javax.faces.model.DataModel#setWrappedData(Object)}public int getWrappedDataFinishRowIndex()
public void setWrappedDataFinishRowIndex(int wrappedDataFinishRowIndex)
public int getWrappedDataStartRowIndex()
public void setWrappedDataStartRowIndex(int wrappedDataStartRowIndex)
public E getWrappedRow(java.lang.Object primaryKey)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||