I have a tree like following:

Tree
  - Root-1
     + Child-1 (with a composite widget. On clicking +, the widget is shown 
that has a bunch of labels, textbox etc)
  + Root-2
  + Root-3

Child-1 is added like:
Widget child-1;
root-1.addItem(child-1);
Child-1 is a composite widget containing bunch of labels, textboxes etc. On 
clicking '+' icon corresponding to Child-1, the widget is made visible.

In code, I have following for making the child tree item visible:
  tree.setSelectedItem(childItem);
  tree.ensureSelectedItemVisible();

Lets say the above code is called for Child-1.
Now first time when the code is called, Root-1 and Child-1 both are 
expanding and Child-1 is brought in view. Everything is good.

But now if I manually close the Child-1 (clicking on '-' icon) and again 
run through the same code, Child-1 is brought into focus but not expanded.

Even if I add something like:
child-1.setState(true)
it does not expand Child-1.

Running through GWT's code shows me that setState() only expands the tree 
item if the item has children but there is no check for widget being set on 
the tree item.

Is there any workaround for this problem or does this sound like a feature 
request?

-- 
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/-/yBj919MVu1wJ.
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