Ralf: Appreciate the response. It sure looks better than what I was going to do, which was copy/paste the whole class, etc... just to get to the member I need.
I wonder if I should open an enhancement or something along those lines for this. One should be able to easily and programmatically start editing a CellTable. Something similar happens with SelectionCell where "options" is private and final. The SellectionCell at that point becomes very static since I can't seem to find a way to add/remove a new option to it. Thank you again for the response. I think I am going to open cases for both of these today. It shouldn't be that hard to patch I think. Best regards, Alfredo On Sat, Apr 14, 2012 at 10:09 AM, R.K.P. Pisters <[email protected]>wrote: > 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. > -- Alfredo Quiroga-Villamil AOL/Yahoo/Gmail/MSN IM: lawwton -- 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.
