public class DataChangeEvent
extends java.util.EventObject
DataListener
,
DataSource
,
Serialized FormConstructor and Description |
---|
DataChangeEvent(DataSource source,
int col,
int row,
java.lang.Comparable<T> valOld,
java.lang.Comparable<T> valNew)
Initializes a new event with data source, position of the data value,
and the values.
|
Modifier and Type | Method and Description |
---|---|
int |
getCol()
Returns the column index of the value that was changed.
|
java.lang.Comparable<?> |
getNew()
Returns the new value after the change has been applied.
|
java.lang.Comparable<?> |
getOld()
Returns the old value before it has changed.
|
int |
getRow()
Returns the row index of the value that was changed.
|
public DataChangeEvent(DataSource source, int col, int row, java.lang.Comparable<T> valOld, java.lang.Comparable<T> valNew)
T
- Data type of the cell that has changed.source
- Data source.col
- Columns of the value.row
- Row of the value.valOld
- Old value.valNew
- New value.public int getCol()
public int getRow()
public java.lang.Comparable<?> getOld()
public java.lang.Comparable<?> getNew()