net.sf.panoptes.model.node
Class ComponentGroupNode

java.lang.Object
  |
  +--net.sf.panoptes.model.node.ComponentGroupNode
All Implemented Interfaces:
INode
Direct Known Subclasses:
DomainNode, LoggerRepository, RootNode

public class ComponentGroupNode
extends java.lang.Object
implements INode

Simple class for use in the treemodel when logical grouping is to be done. This class does not represent anything else than a group and does not have any other meaning. Is typically used when the user wants to group MBeans from different domains.

Author:
Dag Liodden

Field Summary
 
Fields inherited from interface net.sf.panoptes.model.node.INode
ICON_BROKEN_LINK, ICON_CONNECTION, ICON_CONNECTIONS_FOLDER, ICON_DATASOURCE, ICON_DOMAIN, ICON_ERROR, ICON_FOLDER, ICON_INFO, ICON_LOG, ICON_LOG_FOLDER, ICON_MBEAN, ICON_QUERY_FOLDER, ICON_SERVER, ICON_SERVICE, ICON_SESSION, ICON_USER, ICON_WARNING
 
Constructor Summary
ComponentGroupNode(java.lang.String name, java.lang.String description)
           
 
Method Summary
 boolean acceptsChildren()
           
 void addChild(INode child)
           
 INode[] getChildren()
           
 NodeDescriptor getConfigDescriptor()
           
 java.lang.String getIconName()
           
 void setAcceptsChildren(boolean acceptsChildren)
          Sets acceptsChildren.
 void setConfigDescriptor(NodeDescriptor configDescriptor)
          Sets the configDescriptor.
 void setIconName(java.lang.String iconName)
          Sets the iconName.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComponentGroupNode

public ComponentGroupNode(java.lang.String name,
                          java.lang.String description)
Method Detail

addChild

public void addChild(INode child)

getConfigDescriptor

public NodeDescriptor getConfigDescriptor()
Specified by:
getConfigDescriptor in interface INode

getChildren

public INode[] getChildren()
Specified by:
getChildren in interface INode

getIconName

public java.lang.String getIconName()
Specified by:
getIconName in interface INode

acceptsChildren

public boolean acceptsChildren()
Specified by:
acceptsChildren in interface INode

setIconName

public void setIconName(java.lang.String iconName)
Sets the iconName.

Parameters:
iconName - The iconName to set

setAcceptsChildren

public void setAcceptsChildren(boolean acceptsChildren)
Sets acceptsChildren. If you don't want this group to accept arbitrary children, set it to true.

Parameters:
acceptsChildren - The acceptsChildren to set

setConfigDescriptor

public void setConfigDescriptor(NodeDescriptor configDescriptor)
Sets the configDescriptor.

Parameters:
configDescriptor - The configDescriptor to set


Copyright © 2003 . All Rights Reserved.