final SingleSelectionModel<Todo> selectionModel = new SingleSelectionModel<Todo>();
selectionModel.addSelectionChangeHandler(new SelectionChangeEvent.Handler() {
@Override
public void onSelectionChange(SelectionChangeEvent selectionChangeEvent) {
dispatcher.dispatch(new SelectTodo(selectionModel.getSelectedObject()));
}
});
table.setSelectionModel(selectionModel);