KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > exoplatform > portlets > backup > component > UIBackupPortlet


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.backup.component;
6
7 import java.util.* ;
8 import org.exoplatform.faces.core.component.UIPortlet;
9
10 /**
11  * May 31, 2004
12  * @author: Tuan Nguyen
13  * @email: tuan08@users.sourceforge.net
14  * @version: $ID$
15  **/

16 public class UIBackupPortlet extends UIPortlet {
17     
18     public UIBackupPortlet(UIExportData uiExportData,
19                                UIImportServiceDataNode uiImportServiceDataNode,
20                                                  UIImportUserDataNode uiImportUserDataNode) {
21         setId("UIBackupPortlet") ;
22         setClazz("UIBackupPortlet") ;
23         setRendererType("BackupPortletRenderer") ;
24         setName("Backup Menu");
25         List children = getChildren() ;
26         uiExportData.setRendered(true) ;
27         children.add(uiExportData) ;
28         uiImportServiceDataNode.setRendered(false) ;
29         children.add(uiImportServiceDataNode) ;
30         uiImportUserDataNode.setRendered(false) ;
31         children.add(uiImportUserDataNode) ;
32     }
33     
34     public String JavaDoc getFamily() {
35         return "org.exoplatform.portlets.backup.component.UIBackupPortlet" ;
36     }
37 }
Popular Tags