KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > exoplatform > portlets > resources > component > UIResourcesPortlet


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.resources.component;
6
7 import java.util.* ;
8 import org.exoplatform.faces.core.component.UIPortlet;
9 /**
10  * @email: tuan08@users.sourceforge.net
11  * @version: $Id: UIResourcesPortlet.java,v 1.3 2004/07/31 14:56:22 tuan08 Exp $
12  */

13 public class UIResourcesPortlet extends UIPortlet {
14   public UIResourcesPortlet(UIListResources uiListResources, UIResource uiResource) throws Exception JavaDoc {
15     try {
16     setId("UIResourcesPortlet") ;
17     setRendererType("ChildrenRenderer") ;
18     List children = getChildren() ;
19     uiListResources.setRendered(true) ;
20     children.add(uiListResources) ;
21     uiResource.setRendered(false) ;
22     children.add(uiResource) ;
23     } catch(Throwable JavaDoc t) {
24      t.printStackTrace() ;
25     }
26   }
27 }
Popular Tags