|
||||||||||
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.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(javax.swing.JTable table,
javax.swing.Action action)
Create a TableCellListener. |
Method Summary | |
---|---|
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()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TableCellListener(javax.swing.JTable table, javax.swing.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 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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |