KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > exoplatform > portlets > jmx > component > UIJMXPortlet


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.jmx.component;
6
7 import java.util.List JavaDoc;
8 import org.exoplatform.faces.core.component.UIPortlet;
9
10
11 /**
12  * Jul 29, 2004
13  * @author: Tuan Nguyen
14  * @email: tuan08@users.sourceforge.net
15  * @version: $Id: UIJMXPortlet.java,v 1.2 2004/08/01 04:18:27 tuan08 Exp $
16  */

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 JavaDoc 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 JavaDoc getFamily() {
39     return "org.exoplatform.portlets.jmx.component.UIJMXPortlet" ;
40   }
41 }
Popular Tags