KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > exoplatform > portlets > content > display > component > UIAdminStaticContentPortlet


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

5 package org.exoplatform.portlets.content.display.component;
6
7 import java.util.List JavaDoc;
8
9 import org.exoplatform.faces.core.component.UIPortlet;
10
11 /**
12  * @author benjaminmestrallet
13  */

14 public class UIAdminStaticContentPortlet extends UIPortlet {
15
16   public UIAdminStaticContentPortlet(UIContentConfig uiConfig,
17       UIContentConfigForm uiConfigForm) {
18     setRendererType("ChildrenRenderer");
19     List JavaDoc children = getChildren();
20     uiConfigForm.setRendered(false);
21     children.add(uiConfigForm);
22     uiConfig.setRendered(true);
23     uiConfig.setModificationAllowed(false);
24     children.add(uiConfig);
25   }
26
27 }
Popular Tags