public class TableCellListener
extends java.lang.Object
implements java.beans.PropertyChangeListener, java.lang.Runnable
Constructor and Description |
---|
TableCellListener(javax.swing.JTable table,
java.awt.event.ActionListener actionListener)
Create a TableCellListener.
|
Modifier and Type | Method and Description |
---|---|
int |
getColumn()
Get the column that was last edited
|
java.lang.Object |
getNewValue()
Get the new value in the cell
|
java.lang.Object |
getOldValue()
Get the old value of the cell
|
int |
getRow()
Get the row that was last edited
|
javax.swing.JTable |
getTable()
Get the table of the cell that was changed
|
void |
propertyChange(java.beans.PropertyChangeEvent e) |
void |
run() |
public TableCellListener(javax.swing.JTable table, java.awt.event.ActionListener actionListener)
table
- the table to be monitored for data changesactionListener
- the ActionListener to invoke when cell data is changedpublic int getColumn()
public java.lang.Object getNewValue()
public java.lang.Object getOldValue()
public int getRow()
public javax.swing.JTable getTable()
public void propertyChange(java.beans.PropertyChangeEvent e)
propertyChange
in interface java.beans.PropertyChangeListener
public void run()
run
in interface java.lang.Runnable