1 5 package org.exoplatform.portlets.backup.component; 6 7 import java.util.* ; 8 import org.exoplatform.faces.core.component.UIPortlet; 9 10 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 getFamily() { 35 return "org.exoplatform.portlets.backup.component.UIBackupPortlet" ; 36 } 37 } | Popular Tags |