CellTable and its parent AbstractCellData<T> use HasDataPresenter<T>'s methods like keyboadNext(), keyboardPrev(), etc. to manipulate the cursor position.
Since HasDataPresenter<T> has package visibility, direct cursor manipulation from the client code seems impossible. I also could not make it work using events, but I might have been doing something wrong. On Jan 9, 8:32 am, Y2i <[email protected]> wrote: > I didn't do it because I had to change the design. I'm still curios > if it's possible at all... > > On Jan 9, 7:44 am, Deepak Singh <[email protected]> wrote: > > > > > > > > > Can u post the code pls how u did it ? > > > On Sat, Jan 8, 2011 at 2:21 PM, Y2i <[email protected]> wrote: > > > 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 [email protected]. > > > To unsubscribe from this group, send email to > > > [email protected]<google-web-toolkit%2Bunsubs > > > [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.
