Hi John,
Exactly i want what you said. To be more clear, i explain it with example.
Say we have,
CellTable<ObjectABC> table = new CellTable<ObjectABC>();
table.setSelectionModel(....);
I should be able to call the following line when the table gets focus
table.getSelectionModel().setSelected(tableList.get('Row id of the table where the focus is currently active now'), true);
and as the focus moves from one row to another through navigation keys, it should be able to call the above line with corresponding Row id.
Then, In the selection model, i should be able to get the selected object corresponding to the row id where the focus is currently active.
public void onSelectionChange(SelectionChangeEvent event) {
ObjectABC selectedObject = selectionModel.getSelectedObject();
// Further action with selectedObject
}
So Concluding is that i should be able to get the object of the row with respect to the focus.
I hope it is now very clear.
Thanks
Deepak