If we use the CheckBoxSelectionModel in a grid, and one column displays the "checkbox" associated with the "CheckBoxSelectionModel.getColumn()" configuration.
I want to receive the events when rows are "checked" and "unchecked" ... I saw that I can register a listener for the selection model like in this code extract:
Code:
final CheckBoxSelectionModel<ModelData> cbsm = new CheckBoxSelectionModel<ModelData>();
cbsm.addSelectionChangedListener(new SelectionChangedListener<ModelData>() {
@Override
public void selectionChanged(SelectionChangedEvent<ModelData> se) {
// need to know if it was selected or unselected here -- how ???
}
});
So, is it possible to do this; how?
Thank you!