May be you should first select the treeitem and then change the String item
into a TextBox item.

- Litty Preeth

On Mon, Jan 19, 2009 at 9:32 PM, David Durham <[email protected]>wrote:

>
> On Thu, Jan 8, 2009 at 11:53 AM, [email protected]
> <[email protected]> wrote:
> >
> > Whenever I see problems like this I try deferring the focus and/or
> > listener registration from the event which creates a new widget like
> > this. The Tree implementation includes some fun internals which change
> > focus on things to ensure visibility and handle keyboard input.
> >
> > Example:
> > public void onClick(Widget w) {
> >    DeferredCommand.addCommand(new Command() {
> >        public void execute() {
> >            createMyWidget();
> >        }
> >    });
> > }
>
> I tried using a deferred command (actually right after you posted
> this), but it didn't work.  I think it has to do with Tree and
> TreeItems.  Interestingly if I have a Tree with only a single root
> TreeItem, I have no issues with setting focus to the text within a
> textbox within a TreeItem that was just added to a Tree.  At this
> point, I'm just going to write my own Tree widget.
>
> Thanks for your suggestion, I'm using it in other places.
>
> -Dave
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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