int colIndex, EventObject e) {
final String dataIdx = grid.getColumnModel().getDataIndex(colIndex);
final Record r = store.getAt(rowIndex);
String val = r.getAsString(dataIdx);
DTColumnConfig colConf = (DTColumnConfig) colMap.get(dataIdx);
String[] vals = dt.getValueList(colConf, getSCE());
if (vals.length == 0) {
showTextEditor(e, dataIdx, r, val, colConf);
} else {
showDropDownEditor(e, dataIdx, r, val, vals);
}
}
});
//remember any size changes
grid.addGridColumnListener(new GridColumnListenerAdapter() {
public void onColumnResize(GridPanel grid, int colIndex, int newSize) {
final String dta = grid.getColumnModel().getDataIndex(colIndex);
if (dta.equals("desc")) { //NON-NLS
dt.descriptionWidth = newSize;
} else {
if (colMap.containsKey(dta)) {
DTColumnConfig col = (DTColumnConfig) colMap.get(dta);
col.width = newSize;
}
}
}
});