Re: Move the cursor (not the selection) in a CellTable from the code
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 <yur...@gmail.com> 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 <deepaksingh...@gmail.com> wrote:
>
>
>
>
>
>
>
> > Can u post the code pls how u did it ?
>
> > On Sat, Jan 8, 2011 at 2:21 PM, Y2i <yur...@gmail.com> 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 google-web-toolkit@googlegroups.com.
> > > To unsubscribe from this group, send email to
> > > google-web-toolkit+unsubscribe@googlegroups.com<google-web-toolkit%2Bunsubs cribe@googlegroups.com>
> > > .
> > > 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 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