Package org.primefaces.model
Class IterableDataModel<E>
java.lang.Object
javax.faces.model.DataModel<E>
org.primefaces.model.IterableDataModel<E>
- Type Parameters:
E-
- All Implemented Interfaces:
Iterable<E>
public class IterableDataModel<E>
extends javax.faces.model.DataModel<E>
Backport of the new JSF2.3 IterableDataModel, to also make it work in older JSF versions.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintintbooleanvoidsetRowIndex(int rowIndex) voidsetWrappedData(Object data) Methods inherited from class javax.faces.model.DataModel
addDataModelListener, getDataModelListeners, iterator, removeDataModelListenerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
IterableDataModel
public IterableDataModel() -
IterableDataModel
-
-
Method Details
-
getRowCount
public int getRowCount()- Specified by:
getRowCountin classjavax.faces.model.DataModel<E>
-
getRowData
- Specified by:
getRowDatain classjavax.faces.model.DataModel<E>
-
getRowIndex
public int getRowIndex()- Specified by:
getRowIndexin classjavax.faces.model.DataModel<E>
-
setRowIndex
public void setRowIndex(int rowIndex) - Specified by:
setRowIndexin classjavax.faces.model.DataModel<E>
-
getWrappedData
- Specified by:
getWrappedDatain classjavax.faces.model.DataModel<E>
-
setWrappedData
- Specified by:
setWrappedDatain classjavax.faces.model.DataModel<E>
-
isRowAvailable
public boolean isRowAvailable()- Specified by:
isRowAvailablein classjavax.faces.model.DataModel<E>
-