Hi:

I have a DecoratedStackPanel with 3 tabs containing 3 Tree (instead of
1 as in the ShowCase). I separate the content name into intService and
use it to fill Map<String, TreeItem> itemTokens and Map<TreeItem,
ContentWidget> itemWidgets. Typical intService under 3 Trees are:
MyNetwork_Adapters_Standard, MyProject_Private_CleanWater,
MyPlan_Personal_LifeStyle where MyNetwork, MyProject and MyPlan are
containers for the 3 Trees: networkMenu, projectMenu, planMenu. All
treeItems and corresponding contentWidgets with intService strings are
correctly entered into the itemTokens and itemWidget maps.

In the onLoadModule, i follow the Showcase and have
ValueChangeHandler<String> historyHandler. In onValueChange
(ValueChangeEvent<String> event), i extract item from event, get its
content from itemWidgets and take out the content intService to
identify which tree the event coming from so i can showStack,
setSelectedItem, ensureSelectedItemVisible, and display the
contentWidget:

       app.getStackPanel().showStack(0);
       app.getNetworkMenu().setSelectedItem(item, false);
       app.getNetworkMenu().ensureSelectedItemVisible();
       displayContentWidget(itemWidgets.get(item));

The ValueChange Event can pick only from the first Tree networkMenu.
Question: How can i make the ValueChangeEvent response to events from
all trees in the DecoratedStackPanel. Can it be done by implementing
ValueChangeHandler and onValueChange, use event.getSource() widget to
identify the tree source?

Thanks

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