I don't know how to use a CheckboxCell coupled with a SingleSelectionModel.
CheckboxCell selected = new CheckboxCell();
Column<Log, Boolean> chkColumn = new Column<Log, Boolean>(selected){
   public Boolean getValue(Log log){
        return log.getSelected();
   }
};

table.addColumn(chkColumn, "selected");
final SingleSelectionModel<Log> singleSelectionModel = new 
SingleSelectionModel<Log>();
table.setSelectionModel(singleSelectionModel);

but when I run the program, I found that if I click on a row, the row get 
focus first, then I need a second mouse click to cause to checkbox checked, 
then if I click the checkbox in another row, that row get selected but the 
checkbox of that row is not checked and I need to click the checkbox once 
again to selected it.

why will this happen?

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/dyJ7VtSF-JMJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to