DataModelEvent represents an event of interest to
registered listeners that occurred on the specified DataModel.
| Modifier and Type | Field and Description |
|---|---|
| private Object | |
| private int | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public | DataModelEvent(DataModel<E>
The model, int DataModel on which this event occurredThe 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
data)index, or null for no particular row dataConstruct an event object that is associated with the specified row index and associated data. |
| Modifier and Type | Method and Description |
|---|---|
| public DataModel | Returns: theDataModel that fired this eventReturn the |
| public Object | Returns: the object representing the data for the specified row index, ornull for no associated row dataReturn the object representing the data for the specified row index,
or |
| public int | Returns: the row index for this event, or -1 for no specific rowReturn the row index for this event, or -1 for no specific row. |
| data | back to summary |
|---|---|
| private Object data | |
| index | back to summary |
|---|---|
| private int index | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| DataModelEvent | back 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. | |
| getDataModel | back to summary |
|---|---|
| public DataModel Return the | |
| getRowData | back to summary |
|---|---|
| public Object getRowData() Return the object representing the data for the specified row index,
or
| |
| getRowIndex | back to summary |
|---|---|
| public int getRowIndex() Return the row index for this event, or -1 for no specific row.
| |