1 5 package org.exoplatform.portlets.communication.message.component; 6 7 import java.util.List ; 8 import org.exoplatform.faces.core.component.UIPortlet; 9 import org.exoplatform.faces.core.renderer.html.BorderDecorator; 10 15 public class UIMessageCenterConfig extends UIPortlet { 16 17 public UIMessageCenterConfig(UIAccountConfiguration uiAccConfig, 18 UIAccountForm uiAccForm, 19 UIFolderForm uiFolderForm) { 20 setId("UIMessageCenterConfig") ; 21 setClazz("UIMessageCenterConfig"); 22 setRendererType("ChildrenRenderer"); 23 setDecorator(new BorderDecorator("ic3-border")) ; 24 List children = getChildren() ; 25 uiAccConfig.setRendered(true) ; 26 children.add(uiAccConfig); 27 uiAccForm.setRendered(false) ; 28 children.add(uiAccForm) ; 29 uiFolderForm.setRendered(false) ; 30 children.add(uiFolderForm) ; 31 } 32 } | Popular Tags |