|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.jzy3d.surfedit.swing.table.events.exp.TableCellListener
public class TableCellListener
This class listens for changes made to the data in the table via the TableCellEditor.
http://tips4java.wordpress.com/2009/06/07/table-cell-listener/
Constructor Summary | |
---|---|
TableCellListener(JTable table,
Action action)
Create a TableCellListener. |
Method Summary | |
---|---|
int |
getColumn()
Get the column that was last edited |
Object |
getNewValue()
Get the new value in the cell |
Object |
getOldValue()
Get the old value of the cell |
int |
getRow()
Get the row that was last edited |
JTable |
getTable()
Get the table of the cell that was changed |
void |
propertyChange(PropertyChangeEvent e)
|
void |
run()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TableCellListener(JTable table, Action action)
table
- the table to be monitored for data changesaction
- the Action to invoke when cell data is changedMethod Detail |
---|
public int getColumn()
public Object getNewValue()
public Object getOldValue()
public int getRow()
public JTable getTable()
public void propertyChange(PropertyChangeEvent e)
propertyChange
in interface PropertyChangeListener
public void run()
run
in interface Runnable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |