org.fusesource.web.console.client.jmx
Class TreeItemHelper

java.lang.Object
  extended by org.fusesource.web.console.client.jmx.TreeItemHelper

public class TreeItemHelper
extends java.lang.Object

Version:
$Revision: 1.1 $

Constructor Summary
TreeItemHelper()
           
 
Method Summary
static void addMBeansFromTree(java.util.List mbeans, com.google.gwt.user.client.ui.TreeItem node)
           
static boolean containsQueues(com.google.gwt.user.client.ui.TreeItem item)
           
static boolean containsTopics(com.google.gwt.user.client.ui.TreeItem item)
           
static MBeanName getBrokerName(com.google.gwt.user.client.ui.TreeItem item)
           
static java.util.List getChildFolders(com.google.gwt.user.client.ui.TreeItem node)
           
static java.util.List<MBeanName> getChildMBeanNames(com.google.gwt.user.client.ui.TreeItem treeItem)
           
static MBeanData getMBeanData(com.google.gwt.user.client.ui.TreeItem item)
          Returns the user object of the given type or null if its not of that type
static java.util.List getMBeans(com.google.gwt.user.client.ui.TreeItem node)
           
static MBeanName getMBeanTreeItem(com.google.gwt.user.client.ui.TreeItem treeTreeItem)
           
static java.lang.String[] getObjectNames(java.util.List mbeanNames)
           
static boolean hasChildTreeItem(com.google.gwt.user.client.ui.TreeItem node)
           
static boolean isBroker(MBeanName name)
           
static boolean isChildNode(com.google.gwt.user.client.ui.TreeItem root, java.lang.String parentNode)
           
static boolean isQueue(MBeanName name)
           
static boolean isTopic(MBeanName name)
           
static MBeanAttribute[] toArray(java.util.List<MBeanAttribute> list)
           
static MBeanName[] toMBeanArray(java.util.List mbeanNames)
           
static java.lang.String toString(com.google.gwt.user.client.ui.TreeItem item)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TreeItemHelper

public TreeItemHelper()
Method Detail

getMBeans

public static java.util.List getMBeans(com.google.gwt.user.client.ui.TreeItem node)

toMBeanArray

public static MBeanName[] toMBeanArray(java.util.List mbeanNames)

getObjectNames

public static java.lang.String[] getObjectNames(java.util.List mbeanNames)

toArray

public static MBeanAttribute[] toArray(java.util.List<MBeanAttribute> list)

addMBeansFromTree

public static void addMBeansFromTree(java.util.List mbeans,
                                     com.google.gwt.user.client.ui.TreeItem node)

getMBeanTreeItem

public static MBeanName getMBeanTreeItem(com.google.gwt.user.client.ui.TreeItem treeTreeItem)

getChildFolders

public static java.util.List getChildFolders(com.google.gwt.user.client.ui.TreeItem node)

getChildMBeanNames

public static java.util.List<MBeanName> getChildMBeanNames(com.google.gwt.user.client.ui.TreeItem treeItem)

hasChildTreeItem

public static boolean hasChildTreeItem(com.google.gwt.user.client.ui.TreeItem node)

isChildNode

public static boolean isChildNode(com.google.gwt.user.client.ui.TreeItem root,
                                  java.lang.String parentNode)

isBroker

public static boolean isBroker(MBeanName name)

isQueue

public static boolean isQueue(MBeanName name)

isTopic

public static boolean isTopic(MBeanName name)

getBrokerName

public static MBeanName getBrokerName(com.google.gwt.user.client.ui.TreeItem item)

toString

public static java.lang.String toString(com.google.gwt.user.client.ui.TreeItem item)

getMBeanData

public static MBeanData getMBeanData(com.google.gwt.user.client.ui.TreeItem item)
Returns the user object of the given type or null if its not of that type


containsQueues

public static boolean containsQueues(com.google.gwt.user.client.ui.TreeItem item)

containsTopics

public static boolean containsTopics(com.google.gwt.user.client.ui.TreeItem item)


Copyright © 2009 FuseSource. All Rights Reserved.