Home » Mojarra-2.0.1 » javax » faces » model » [javadoc | source]
javax.faces.model
public class: ScalarDataModel [javadoc | source]
java.lang.Object
   javax.faces.model.DataModel<E>
      javax.faces.model.ScalarDataModel

All Implemented Interfaces:
    Iterable

ScalarDataModel is a convenience implementation of DataModel that wraps an individual Java object.

Constructor:
 public ScalarDataModel() 
 public ScalarDataModel(E scalar) 
    Parameters:
    scalar - Scalar to be wrapped (if any)
Method from javax.faces.model.ScalarDataModel 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.ScalarDataModel Detail:
 public int getRowCount() 

    If there is wrappedData available, return 1. If no wrappedData is available, return -1.

 public E getRowData() 

    If wrapped data is available, return the wrapped data instance. Otherwise, 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 zero. Otherwise, return false.

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