1 5 package org.exoplatform.portlets.jmx.component; 6 7 import java.util.List ; 8 import org.exoplatform.faces.core.component.UIPortlet; 9 10 11 17 public class UIJMXPortlet extends UIPortlet { 18 19 public UIJMXPortlet(UINavigator uiNavigator, UIListMBean uiListMBean, 20 UIMBean uiMBean, UIOperation uiOperation) { 21 setId("UIJMXPortlet") ; 22 setClazz("UIJMXPortlet"); 23 setRendererType("JMXPortletRenderer") ; 24 List children = getChildren() ; 25 uiNavigator.setRendered(true) ; 26 children.add(uiNavigator) ; 27 uiListMBean.setRendered(true) ; 28 UIMBeanServer uiMBeanServer = uiNavigator.getDefaultUIMBeanServer() ; 29 uiListMBean.setMBeanServerDomain(uiMBeanServer.getMBeanServer(), 30 uiMBeanServer.getRootDomain()) ; 31 children.add(uiListMBean) ; 32 uiMBean.setRendered(false) ; 33 children.add(uiMBean) ; 34 uiOperation.setRendered(false) ; 35 children.add(uiOperation) ; 36 } 37 38 public String getFamily() { 39 return "org.exoplatform.portlets.jmx.component.UIJMXPortlet" ; 40 } 41 } | Popular Tags |