KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > info > magnolia > module > workflow > trees > WorkflowTreeConfiguration


1 package info.magnolia.module.workflow.trees;
2
3 import info.magnolia.cms.core.ItemType;
4 import info.magnolia.cms.gui.control.Tree;
5 import info.magnolia.module.admininterface.trees.ConfigTreeConfiguration;
6
7 import javax.servlet.http.HttpServletRequest JavaDoc;
8
9 /**
10  * Tree to view workitems and expressions
11  */

12 public class WorkflowTreeConfiguration extends ConfigTreeConfiguration {
13
14     public void prepareTree(Tree tree, boolean browseMode, HttpServletRequest JavaDoc request) {
15         super.prepareTree(tree,browseMode,request);
16         tree.addItemType(ItemType.WORKITEM);
17         tree.addItemType(ItemType.NT_UNSTRUCTRUED);
18         tree.addItemType(ItemType.EXPRESSION);
19     }
20
21 }
22
Popular Tags