Home » Mojarra-2.0.1 » javax » faces » model » [javadoc | source]
javax.faces.model
public class: DataModelEvent [javadoc | source]
java.lang.Object
   java.util.EventObject
      javax.faces.model.DataModelEvent

All Implemented Interfaces:
    Serializable

DataModelEvent represents an event of interest to registered listeners that occurred on the specified DataModel .

Fields inherited from java.util.EventObject:
source
Constructor:
 public DataModelEvent(DataModel model,
    int index,
    Object data) 

    Construct an event object that is associated with the specified row index and associated data.

    Parameters:
    model - The DataModel on which this event occurred
    index - The zero relative row index for which this event occurred, or -1 for no specific row association
    data - Representation of the data for the row specified by index, or null for no particular row data
Method from javax.faces.model.DataModelEvent Summary:
getDataModel,   getRowData,   getRowIndex
Methods from java.util.EventObject:
getSource,   toString
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from javax.faces.model.DataModelEvent Detail:
 public DataModel getDataModel() 
 public Object getRowData() 

    Return the object representing the data for the specified row index, or null for no associated row data.

 public int getRowIndex() 

    Return the row index for this event, or -1 for no specific row.