I think I got it. Will this be correct?
private final SingleSelectionModel<DTO> roleStatusSelectionModel = new SingleSelectionModel<>(KEY_PROVIDER);
roleCellTable.setSelectionModel(roleStatusSelectionModel);
private final CheckboxCell rowSelectionColumnCell = new CheckboxCell(true, false);
final Column<DTO, Boolean> rowSelectionColumn = new Column<DTO, Boolean>(rowSelectionColumnCell) {
@Override
public Boolean getValue(final DTO dto) {
return roleStatusSelectionModel.isSelected(dto);
}
}
final Set<DTO> selectedSet = roleStatusSelectionModel.getSelectedSet();
for (final DTO selected : selectedSet) {
selected.setActive(true);
}
Secondly, If I have to do this custom radio based on CheckboxCell, what's the best way?
On Thursday, June 28, 2018 at 11:20:36 AM UTC-5, Thomas Broyer wrote: