Bear,

I don't think it's covered by documentation, and I also don't think
it's really a simple thing to do.  I have implemented something like
this relative to the 1.4 codebase, so it may not take advantage of
features in 1.5, I don't know.

One issue is that whatever you use as a cell editor needs to recognize
the TAB key as a "commit" trigger (this assumes you let your user
abandon a change in progress).  Then you need something of a
PositionController which maintains a cursor on the grid, and knows how
to navigate the grid.  For instance, a TAB would behave as you said,
but a DOWN arrow might behave differently.

To support such a PositionController, I found I needed to extend the
Grid widget to instrument it with Keyboard and Mouse listeners, in
addition to the Click listener.  Then I let my PositionController
subscribe to the events that can cause position changes, and so on.
Hopefully you get the idea.

Walden


On Sep 30, 1:27 pm, Bear <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I'm sure that this is covered in the documentation, but I'm having a
> hard time finding it.  Basically I'm learning GWT from David Geary's
> excellent book, "GWT Solutions."  I have successfully implemented part
> of solution 8 and what I'm trying to do is extend his code by allowing
> the user to use the "Tab" key to finish editing one cell and move to
> the next, if there is one on the same row, or the next row and 1st
> cell of that row.
>
> What I think I wish to do is fire a onCellClicked event with the next
> cell that will then be captured by my TableListener.  This idea may be
> way off the right way to do this, but, at least to me, it seems the
> way to do something like this.
>
> I would appreciate hearing some ideas on this, and I would like to
> thank everyone in advance.
>
> Bear
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to