WebNMS 5 API Specification

com.adventnet.beans.chassis
Class ChassisUtility

java.lang.Object
  |
  +--com.adventnet.beans.chassis.ChassisUtility

public class ChassisUtility
extends java.lang.Object

A Utility Class for constructing the tree and the tree nodes of the ChassisComponents.


Method Summary
static javax.swing.tree.DefaultMutableTreeNode getRootNode(ChassisComponent rootArg)
          Returns a DefaultMutableTreeNode with the string "Chassis" as the root node and the subsequent tree nodes, formed by walking recursively through the ChassisComponent passed as argument.
static javax.swing.JTree getTree(ChassisComponent rootArg)
          Returns a JTree with the string "Chassis" as the root node and the subsequent tree nodes, formed by walking recursively through the ChassisComponent passed as argument.Also, a default tree cell renderer will be set to it.
static javax.swing.tree.DefaultTreeModel getTreeModel(ChassisComponent rootArg)
          Returns a DefaultTreeModel with the string "Chassis" as the root node and the subsequent tree nodes, formed by walking recursively through the ChassisComponent passed as argument.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getTreeModel

public static javax.swing.tree.DefaultTreeModel getTreeModel(ChassisComponent rootArg)
Returns a DefaultTreeModel with the string "Chassis" as the root node and the subsequent tree nodes, formed by walking recursively through the ChassisComponent passed as argument.
Parameters:
rootArg - The parent ChassisComponent
Returns:
DefaultTreeModel

getRootNode

public static javax.swing.tree.DefaultMutableTreeNode getRootNode(ChassisComponent rootArg)
Returns a DefaultMutableTreeNode with the string "Chassis" as the root node and the subsequent tree nodes, formed by walking recursively through the ChassisComponent passed as argument.
Parameters:
rootArg - The parent ChassisComponent
Returns:
DefaultMutableTreeNode

getTree

public static javax.swing.JTree getTree(ChassisComponent rootArg)
Returns a JTree with the string "Chassis" as the root node and the subsequent tree nodes, formed by walking recursively through the ChassisComponent passed as argument.Also, a default tree cell renderer will be set to it.
Parameters:
rootArg - The parent ChassisComponent
Returns:
JTree

WebNMS 5 API Specification