KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > exoplatform > portlets > indexing > component > UIIndexerManagerPortlet


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.indexing.component;
6
7 import java.util.List JavaDoc;
8 import org.exoplatform.faces.core.component.UIPortlet;
9 /**
10  * @author Tuan Nguyen (tuan08@users.sourceforge.net)
11  * @since Aug 27, 2004
12  * @version $Id: UIIndexerManagerPortlet.java,v 1.1 2004/09/16 02:48:43 tuan08 Exp $
13  */

14 public class UIIndexerManagerPortlet extends UIPortlet {
15   
16   public UIIndexerManagerPortlet(UIListIndexer uiListIndexer,
17                                  UIFileIndexerPlugin uiFileIndexer) throws Exception JavaDoc {
18     setId("UIIndexerManagerPortlet") ;
19     setClazz("UIIndexerManagerPortlet");
20     setRendererType("ChildrenRenderer");
21     List JavaDoc children = getChildren() ;
22     uiListIndexer.setRendered(true) ;
23     children.add(uiListIndexer) ;
24     uiFileIndexer.setRendered(false) ;
25     children.add(uiFileIndexer) ;
26   }
27 }
Popular Tags