Posted Wednesday, March 5, 2008 @ 09:31:02
you can implement a cellListener and in the event of cellValueChanged do your own behavior, 4 example I implemented the class MyCellListener that has a quicktable to get other data that i need to do the update of the info, u can pass ur graph object as well. i included the code of myCellListener as an example. good luck javascript:enter_code(':\)');
javascript:enter_code(':\)');
class MyCellListener implements DBTableCellListener {
private quick.dbtable.DBTable tbl;
private UWListRW update;
public MyCellListener(quick.dbtable.DBTable tbla, UWListRW upd) {
super();
this.tbl = tbla;
this.update = upd;
}
public Object cellValueChanged(int row, int col, Object oldValue, Object newValue) {
if (col == 1) {
if (!this.tbl.getValueAt(row, 0).equals(newValue)) {
Object[] data = new Object[2];
data[0] = this.tbl.getValueAt(row, 1);
data[1] = newValue;
this.update.commit(data);
}
return newValue;
}
return oldValue;
}
} :) :)
--------------------
Lhyna