public class DataModelEvent
extends java.util.EventObject
DataModelEvent represents an event of interest to registered listeners that occurred on the
specified DataModel
.
Constructor and Description |
---|
DataModelEvent(DataModel model,
int index,
java.lang.Object data)
Construct an event object that is associated with the specified row index and associated data.
|
Modifier and Type | Method and Description |
---|---|
DataModel |
getDataModel()
Return the
DataModel that fired this event. |
java.lang.Object |
getRowData()
Return the object representing the data for the specified row index, or
null for no associated row data. |
int |
getRowIndex()
Return the row index for this event, or -1 for no specific row.
|
public DataModelEvent(DataModel model, int index, java.lang.Object data)
Construct an event object that is associated with the specified row index and associated data.
model
- The DataModel
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 by index
, or null
for no
particular row datapublic DataModel getDataModel()
Return the DataModel
that fired this event.
DataModel
that fired this eventpublic java.lang.Object getRowData()
Return the object representing the data for the specified row index, or null
for no associated row data.
null
for no associated row datapublic int getRowIndex()
Return the row index for this event, or -1 for no specific row.