Hi i am new with gwt and am having some problems with the tree panel.
it doesnt seem to appear. really need some help here. thnxs!
below is my code.
final TreePanel treePanelVistaArrows = new SampleTree();
//treePanelVistaArrows.setTitle("Vista Arrows");
treePanelVistaArrows.setWidth(250);
treePanelVistaArrows.setHeight(400);
treePanelVistaArrows.setUseArrows(true);
//treePanelVistaArrows.getUseArrows(true);
treePanelVistaArrows.setAnimate(true);
treePanelVistaArrows.expandAll();
Panel p2 = new Panel();
p2.add(treePanelVistaArrows);
navigationPanel.add(p2);
.
.
.
westPanel.add(navigationPanel);
class SampleTree extends TreePanel {
public SampleTree() {
TreeNode root = new TreeNode("Company
Heirarchy");
TreeNode ceo = new TreeNode("Home");
ceo.setExpanded(true);
TreeNode manager1 = new TreeNode("Mind Map");
manager1.setExpanded(true);
TreeNode manager2 = new TreeNode("Info Vault");
manager2.setExpanded(true);
TreeNode manager3 = new TreeNode("Query Tree");
manager3.setExpanded(true);
TreeNode manager4 = new TreeNode("Browers
State");
manager4.setExpanded(true);
ceo.appendChild(manager1);
ceo.appendChild(manager2);
ceo.appendChild(manager3);
ceo.appendChild(manager4);
root.appendChild(ceo);
setRootVisible(false);
//setTitle("Company");
setWidth(200);
setHeight(400);
setRootNode(root);
root.setExpanded(true);
}
}
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---