KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > exoplatform > portlets > workflow > component > UIWorkflowPortlet


1 /***************************************************************************
2
3  * Copyright 2001-2003 The eXo Platform SARL All rights reserved. *
4
5  * Please look at license.txt in info directory for more license detail. *
6
7  **************************************************************************/

8
9 package org.exoplatform.portlets.workflow.component;
10
11 import java.util.List JavaDoc;
12 import org.exoplatform.faces.core.component.UIPortlet;
13
14 /**
15  * @author: Benjamin Mestrallet
16  * @email: benjamin.mestrallet@exoplatform.com
17  */

18
19 public class UIWorkflowPortlet extends UIPortlet {
20
21   public static final String JavaDoc ANONYMOUS_USER = "anonymous";
22
23   public UIWorkflowPortlet(UIBPDefinitionController uibpDefinitionController,
24       UITaskListController uiTaskListController) throws Exception JavaDoc {
25     setRendererType("SimpleTabRenderer");
26     setClazz("UIWorkflowPortlet");
27     List JavaDoc children = getChildren();
28     uibpDefinitionController.setRendered(true);
29     children.add(uibpDefinitionController);
30     uiTaskListController.setRendered(false);
31     children.add(uiTaskListController);
32   }
33
34 }
Popular Tags