KickJava   Java API By Example, From Geeks To Geeks.

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


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: UIMessageCenterPortlet.java,v 1.5 2004/10/27 03:12:40 tuan08 Exp $
14  */

15 public class UIMessageCenterPortlet extends UIPortlet {
16   
17   public UIMessageCenterPortlet(UISelectAccount uiSelectAccount,
18                                 UIAccount uiAccount) throws Exception JavaDoc {
19     setId("UIMessageCenterPortlet") ;
20     setClazz("UIMessageCenterPortlet");
21     setRendererType("ChildrenRenderer");
22     setDecorator(new BorderDecorator("ic3-border")) ;
23     List JavaDoc children = getChildren() ;
24     uiAccount.setRendered(true) ;
25     uiAccount.setAccount(uiSelectAccount.getSelectAccount()) ;
26     children.add(uiAccount) ;
27     uiSelectAccount.setRendered(true) ;
28     children.add(uiSelectAccount) ;
29   }
30 }
Popular Tags