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


On Tue, Feb 8, 2011 at 5:16 AM, John LaBanca <[email protected]> wrote:

> I think deepak wants to set native focus on the table so the user can use
> keyboard navigation without having to click on a cell first.
>
> Thanks,
> John LaBanca
> [email protected]
>
>
> On Mon, Feb 7, 2011 at 5:50 PM, zixzigma <[email protected]> wrote:
>
>> don't you think this can be achieved by using selectionModel.setSelection
>> and selecting the first item from the current range ?
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Google Web Toolkit" group.
>> 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.
>>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> 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.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
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