}
}
protected String isCellSelected(Object rowData, Object selection, boolean single) {
if(single) {
Cell cell = (Cell) selection;
if(rowData.equals(cell.getRowData()))
return cell.getColumnId();
else
return null;
} else {
StringBuffer buffer = new StringBuffer();
Cell[] cells = (Cell[]) selection;
for(Cell cell : cells) {
if(rowData.equals(cell.getRowData())) {
buffer.append(cell.getColumnId());
buffer.append(",");
}
}
return buffer.length() > 0 ? buffer.toString() : null;