I try to add a SelectionChangeHandler to the table as follow:
singleSelectionModel.addSelectionChangeHandler(new
SelectionChangeEvent.Handler(){
public void onSelectionChange(SelectionChangeEvent event){
Log selectedLog =
singleSelectionModel.getSelectedObject();
selectedLog.setSelected(true);
}});
table.setSelectionModel(singleSelectionModel);
but after adding this code, user can select multi checkbox now!!
So how to make a table with a column checkbox and then only allow user
to select one checkbox only?