01: package hugetestportlet.data;
02:
03: import javax.swing.tree.DefaultMutableTreeNode;
04: import javax.swing.tree.TreeNode;
05:
06: public class NavigationTreeModel {
07:
08: public static final TreeNode ROOT_NODE = generateTree();
09:
10: static TreeNode generateTree() {
11: DefaultMutableTreeNode root = new DefaultMutableTreeNode(
12: "Navigation");
13:
14: root.add(new DefaultMutableTreeNode("Table"));
15: root.add(new DefaultMutableTreeNode("Pictures"));
16: root.add(new DefaultMutableTreeNode("Links"));
17: root.add(new DefaultMutableTreeNode("Params"));
18: root.add(new DefaultMutableTreeNode("ParamsMode"));
19: root.add(new DefaultMutableTreeNode("ParamsWS"));
20:
21: return root;
22: }
23:
24: }
|