I remember facing the same problem some time ago. In the end I just
dispatched a click event on the cell, like so:
Scheduler.get().scheduleDeferred(new Scheduler.ScheduledCommand() {
@Override
public void execute() {
int i = getRowIndex();
int j = getColumnIndex();
NativeEvent clickEvent = Document.get().createClickEvent(1, 0, 0, 0, 0,
false, false, false, false);
cellTable.getRowElement(i).getCells().getItem(j).dispatchEvent(clickEvent);
}
});
I realize this is not a very elegant solution, all the more so since
dispatching the event will fail in case you're using a SelectionCell
instead of an EditTextCell (see my question
here<https://groups.google.com/forum/?fromgroups#!topic/google-web-toolkit/nLfM8nrJ9UQ>).
So if anybody has a better idea, please share it with us.
Ralf
--
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/-/KjzapcBdCtAJ.
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.