|
||||||||||
| 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.RowMarkerDataModel<E>
com.liferay.faces.util.model.LazyDataModel<E>
OnDemandDataModel instead.
@Deprecated 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 com.liferay.faces.util.model.RowMarkerDataModel |
|---|
RowMarkerDataModel.RowMarksObserver |
| Field Summary |
|---|
| Fields inherited from class com.liferay.faces.util.model.RowMarkerDataModel |
|---|
allRowsMarked |
| Constructor Summary | |
|---|---|
LazyDataModel()
Deprecated. |
|
| Method Summary | |
|---|---|
abstract int |
countRows()
Deprecated. Returns the total number of rows. |
abstract List<E> |
findRows(int startRow,
int finishRow)
Deprecated. Returns a list of rows that is a subset of the entire list of rows. |
int |
getRowCount()
Deprecated. |
E |
getRowData()
Deprecated. |
int |
getRowIndex()
Deprecated. |
int |
getRowsPerPage()
Deprecated. Returns the number of rows-per-page associated with the pagination. |
String |
getSortColumn()
Deprecated. |
List<E> |
getWrappedData()
Deprecated. |
int |
getWrappedDataFinishRowIndex()
Deprecated. Returns the index of the finishing row associated with the underlying wrapped data. |
int |
getWrappedDataStartRowIndex()
Deprecated. Returns the index of the starting row associated with the underlying wrapped data. |
E |
getWrappedRow(Object primaryKey)
Deprecated. Searches through the cached/wrapped data for the row that corresponds to the specified primaryKey and returns the row. |
boolean |
isReset()
Deprecated. Indicates whether or not the underlying cache of rows has been reset/cleared. |
boolean |
isRowAvailable()
Deprecated. |
boolean |
isSortAscending()
Deprecated. |
void |
reset()
Deprecated. Resets (clears) the underlying cache of rows. |
void |
setRowCount(int rowCount)
Deprecated. Sets the rowCount to the specified value. |
void |
setRowIndex(int rowIndex)
Deprecated. |
void |
setRowsPerPage(int rowsPerPage)
Deprecated. Sets the number of rows-per-page associated with the pagination. |
void |
setSortAscending(boolean sortAscending)
Deprecated. |
void |
setSortColumn(String sortColumn)
Deprecated. |
void |
setWrappedData(Object wrappedData)
Deprecated. |
void |
setWrappedDataFinishRowIndex(int wrappedDataFinishRowIndex)
Deprecated. Sets the finishing row associated with the underlying wrapped data. |
void |
setWrappedDataStartRowIndex(int wrappedDataStartRowIndex)
Deprecated. Sets the starting row associated with the underlying wrapped data. |
| Methods inherited from class com.liferay.faces.util.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 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()
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)
public String getSortColumn()
public void setSortColumn(String sortColumn)
public boolean isReset()
RowMarkerDataModel
isReset in class RowMarkerDataModel<E>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)}public int getWrappedDataFinishRowIndex()
public void setWrappedDataFinishRowIndex(int wrappedDataFinishRowIndex)
public int getWrappedDataStartRowIndex()
public void setWrappedDataStartRowIndex(int wrappedDataStartRowIndex)
public E getWrappedRow(Object primaryKey)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||