public class IterableDataModel<E>
extends javax.faces.model.DataModel<E>
DataModel that wraps an Iterable.
This can be used to encapsulate nearly every collection type, including Collection derived types such as
List and Set. As such this specific DataModel can be used instead of more specific DataModels like
ListDataModel and JSF 2.2's CollectionDataModel.
| Constructor and Description |
|---|
IterableDataModel(Iterable<E> iterable) |
| Modifier and Type | Method and Description |
|---|---|
int |
getRowCount() |
E |
getRowData() |
int |
getRowIndex() |
Object |
getWrappedData() |
boolean |
isRowAvailable() |
void |
setRowIndex(int rowIndex) |
void |
setWrappedData(Object data) |
public boolean isRowAvailable()
isRowAvailable in class javax.faces.model.DataModel<E>public int getRowCount()
getRowCount in class javax.faces.model.DataModel<E>public int getRowIndex()
getRowIndex in class javax.faces.model.DataModel<E>public void setRowIndex(int rowIndex)
setRowIndex in class javax.faces.model.DataModel<E>public Object getWrappedData()
getWrappedData in class javax.faces.model.DataModel<E>Copyright © 2012–2014 OmniFaces. All rights reserved.