Package javax.faces.model
Class DataModelEvent
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
.
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorDescriptionDataModelEvent
(DataModel model, int index, Object data) Construct an event object that is associated with the specified row index and associated data. -
Method Summary
Modifier and TypeMethodDescriptionReturn theDataModel
that fired this event.Return the object representing the data for the specified row index, ornull
for no associated row data.int
Return the row index for this event, or -1 for no specific row.Methods inherited from class java.util.EventObject
getSource, toString
-
Constructor Details
-
DataModelEvent
Construct an event object that is associated with the specified row index and associated data.
- Parameters:
model
- TheDataModel
on which this event occurredindex
- The zero relative row index for which this event occurred, or -1 for no specific row associationdata
- Representation of the data for the row specified byindex
, ornull
for no particular row data
-
-
Method Details
-
getDataModel
Return the
DataModel
that fired this event.- Returns:
- the
DataModel
that fired this event
-
getRowData
Return the object representing the data for the specified row index, or
null
for no associated row data.- Returns:
- the object representing the data for the specified row index,
or
null
for no associated row data
-
getRowIndex
public int getRowIndex()Return the row index for this event, or -1 for no specific row.
- Returns:
- the row index for this event, or -1 for no specific row
-