this.addCellPreviewHandler(new Handler<Tabletype>() {
@Override
public void onCellPreview(final CellPreviewEvent<Tabletype> event) {
int columnID = event.getColumn();
}
});
}
Just replace tabletype with the object you definded when instantiating the table ( The T of CellTable<T>
) Then with the columnID you can detect the right column.