I created a CellTree based on GWT sample (http://http://gwt.google.com/
samples/Showcase/Showcase.html), but with over 2 levels.
sample levels:
Category > ContentWidth
my app:
Category > ContentWidth > ContentWidth > ContentWidth > ...
In the sample, the cells are expanded as follows:
Showcase.java:
// Expand the tree node associated with the content.
Category category = treeModel.getCategoryForContentWidget(
contentWidget);
TreeNode node = mainMenu.getRootTreeNode();
int childCount = node.getChildCount();
for (int i = 0; i < childCount; i++) {
if (node.getChildValue(i) == category) {
node.setChildOpen(i, true, true);
break;
}
}
How to expand a cell at a level below RootTreeNode?
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 google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
No comments:
Post a Comment