net.sf.panoptes.model.component
Class ComponentGroup

java.lang.Object
  |
  +--net.sf.panoptes.model.node.Node
        |
        +--net.sf.panoptes.model.component.Component
              |
              +--net.sf.panoptes.model.component.ComponentGroup
Direct Known Subclasses:
RootNode

public class ComponentGroup
extends Component

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 class net.sf.panoptes.model.node.Node
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
ComponentGroup(java.lang.String name, java.lang.String description)
           
 
Method Summary
 boolean acceptsChildren()
           
 void addChild(Node child)
           
 Node[] getChildren()
           
 NodeDescriptor getConfigDescriptor()
           
 java.lang.String[] getConfiguratorScripts()
           
 org.eclipse.swt.graphics.Image getIcon()
           
 void init()
          Called when the Component has had all it's attributes set and should be ready for initialization.
 void setAcceptsChildren(boolean acceptsChildren)
          Sets acceptsChildren.
 void setConfigDescriptor(NodeDescriptor configDescriptor)
          Sets the configDescriptor.
 void setIcon(org.eclipse.swt.graphics.Image icon)
          Sets the icon.
 
Methods inherited from class net.sf.panoptes.model.component.Component
getComponentName, getComponentRegistry, setComponentName, setComponentRegistry
 
Methods inherited from class net.sf.panoptes.model.node.Node
addUpdateListener, createImage, notifyListeners, removeUpdateListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComponentGroup

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

init

public void init()
Description copied from class: Component
Called when the Component has had all it's attributes set and should be ready for initialization.

Specified by:
init in class Component

addChild

public void addChild(Node child)

getConfigDescriptor

public NodeDescriptor getConfigDescriptor()
Specified by:
getConfigDescriptor in class Node

getChildren

public Node[] getChildren()
Overrides:
getChildren in class Component

getIcon

public org.eclipse.swt.graphics.Image getIcon()
Specified by:
getIcon in class Node
Returns:

acceptsChildren

public boolean acceptsChildren()
Overrides:
acceptsChildren in class Component

setIcon

public void setIcon(org.eclipse.swt.graphics.Image icon)
Sets the icon.

Overrides:
setIcon in class Node
Parameters:
icon -

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.

Overrides:
setConfigDescriptor in class Node
Parameters:
configDescriptor - The configDescriptor to set

getConfiguratorScripts

public java.lang.String[] getConfiguratorScripts()
Overrides:
getConfiguratorScripts in class Component


Copyright © 2003 . All Rights Reserved.