KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > exoplatform > portlets > communication > message > component > UIMessageCenterConfig


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.communication.message.component;
6
7 import java.util.List JavaDoc;
8 import org.exoplatform.faces.core.component.UIPortlet;
9 import org.exoplatform.faces.core.renderer.html.BorderDecorator;
10 /**
11  * @author Tuan Nguyen (tuan08@users.sourceforge.net)
12  * @since Aug 27, 2004
13  * @version $Id: UIMessageCenterConfig.java,v 1.3 2004/10/27 03:12:40 tuan08 Exp $
14  */

15 public class UIMessageCenterConfig extends UIPortlet {
16   
17   public UIMessageCenterConfig(UIAccountConfiguration uiAccConfig,
18                                UIAccountForm uiAccForm,
19                                UIFolderForm uiFolderForm) {
20     setId("UIMessageCenterConfig") ;
21     setClazz("UIMessageCenterConfig");
22     setRendererType("ChildrenRenderer");
23     setDecorator(new BorderDecorator("ic3-border")) ;
24     List JavaDoc children = getChildren() ;
25     uiAccConfig.setRendered(true) ;
26     children.add(uiAccConfig);
27     uiAccForm.setRendered(false) ;
28     children.add(uiAccForm) ;
29     uiFolderForm.setRendered(false) ;
30     children.add(uiFolderForm) ;
31   }
32 }
Popular Tags