Top Description Fields Constructors Methods
javax.faces.model

public Class DataModelEvent

extends EventObject
Class Inheritance
Imports
java.util.EventObject

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

Field Summary

Modifier and TypeField and Description
private Object
private int
private static final long
Inherited from java.util.EventObject:
source

Constructor Summary

AccessConstructor and Description
public
DataModelEvent(DataModel<E>
The DataModel on which this event occurred
model
,
int
The zero relative row index for which this event occurred, or -1 for no specific row association
index
,
Object
Representation of the data for the row specified by index, or null for no particular row data
data
)

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

Method Summary

Modifier and TypeMethod and Description
public DataModel<E>

Returns:

the DataModel that fired this event
getDataModel
()

Return the DataModel that fired this event.

public Object

Returns:

the object representing the data for the specified row index, or null for no associated row data
getRowData
()

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

public int

Returns:

the row index for this event, or -1 for no specific row
getRowIndex
()

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

Inherited from java.util.EventObject:
getSourcetoString

Field Detail

databack to summary
private Object data
indexback to summary
private int index
serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.util.EventObject.serialVersionUID.

Constructor Detail

DataModelEventback to summary
public DataModelEvent(DataModel<E> model, int index, Object data)

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

Parameters
model:DataModel<E>

The DataModel on which this event occurred

index:int

The zero relative row index for which this event occurred, or -1 for no specific row association

data:Object

Representation of the data for the row specified by index, or null for no particular row data

Method Detail

getDataModelback to summary
public DataModel<E> getDataModel()

Return the DataModel that fired this event.

Returns:DataModel<E>

the DataModel that fired this event

getRowDataback to summary
public Object getRowData()

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

Returns:Object

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

getRowIndexback to summary
public int getRowIndex()

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

Returns:int

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