Home » Mojarra-2.0.1 » javax » faces » model » [javadoc | source]
public class: ListDataModel [javadoc | source]

All Implemented Interfaces:

ListDataModel is a convenience implementation of DataModel that wraps an List of Java objects.

 public ListDataModel() 
 public ListDataModel(List<E> list) 
    list - List to be wrapped (if any)
Method from javax.faces.model.ListDataModel Summary:
getRowCount,   getRowData,   getRowIndex,   getWrappedData,   isRowAvailable,   setRowIndex,   setWrappedData
Methods from javax.faces.model.DataModel:
addDataModelListener,   getDataModelListeners,   getRowCount,   getRowData,   getRowIndex,   getWrappedData,   isRowAvailable,   iterator,   removeDataModelListener,   setRowIndex,   setWrappedData
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from javax.faces.model.ListDataModel Detail:
 public int getRowCount() 

    If there is wrappedData available, return the length of the list. If no wrappedData is available, return -1.

 public E getRowData() 

    If row data is available, return the array element at the index specified by rowIndex. If no wrapped data is available, return null.

 public int getRowIndex() 
 public Object getWrappedData() 
 public boolean isRowAvailable() 

    Return true if there is wrappedData available, and the current value of rowIndex is greater than or equal to zero, and less than the size of the list. Otherwise, return false.

 public  void setRowIndex(int rowIndex) 
 public  void setWrappedData(Object data)