Bump - anyone have any ideas?

On Mar 21, 10:02 pm, Talmge <[email protected]> wrote:
> When I add a simple Widget to a tree (Such as a checkbox or call
> addItem with a string) I can select the item -- that is, if I click on
> it the blue background appears around the text showing me that I
> selected that node in the tree.
>
> With other widgets such as labels or composites that blue background
> does not appear around the selected node, and I have no way of
> visually knowing it was selected. I imagine this is me not
> understanding how the click events are not being handled and was
> wondering if someone could indicate the right way to accomplish this?
>
> public class MyTest implements EntryPoint
> {
>
>         public void onModuleLoad()
>         {
>
>                 Tree editTree = new Tree();
>                 editTree.setWidth("98%");
>
>                 TreeItem treeRoot = new TreeItem("Tree Root");
>
>                 treeRoot.addItem("I can Be Selected");
>                 treeRoot.addItem(new Label("I can't Be selected"));
>                 treeRoot.addItem(new CheckBox("I am a checkbox, and I can be
> selected as well."));
>                 treeRoot.addItem(new SomeComposite());
>
>                 editTree.addItem(treeRoot);
>
>                 RootLayoutPanel.get().add(editTree);
>
>         }
>
>         public class SomeComposite extends Composite
>         {
>
>                 public SomeComposite()
>                 {
>
>                         super.initWidget(new HTML("I am a composite and I 
> can't be selected
> either."));
>
>                 }
>
>         }
>
> }

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