Saturday, January 8, 2011

Move the cursor (not the selection) in a CellTable from the code

It is possible, by calling SingleSelectionModel.setSelected(...), to
change the selection (blue line) in a CellTable from the code.

Is it possible to change the cursor (yellow line) in the CellTable
from the code?

I tried

DomEvent.fireNativeEvent(Document.get().createKeyCodeEvent("keydown",
false, false, false, false, KeyCodes.KEY_DOWN), cellTable);

and it didn't work. I also tried "keypress" and "keyup" instead of
"keydown" with negative results.

Any help would be greatly appreciated!

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate