net.sf.panoptes.model.component
Class ComponentQuery

java.lang.Object
  |
  +--net.sf.panoptes.model.node.Node
        |
        +--net.sf.panoptes.model.component.Component
              |
              +--net.sf.panoptes.model.component.ComponentQuery
Direct Known Subclasses:
DomainComponent, MBeanServerComponent

public class ComponentQuery
extends Component

Represents a component query node which will list the query results as it's children.

Author:
Dag Liodden
See Also:
IComponent, ComponentName, Node

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
ComponentQuery()
          Constructs a new object which will query a registry for components.
 
Method Summary
 boolean acceptsChildren()
           
 Node[] getChildren()
           
 NodeDescriptor getConfigDescriptor()
           
 java.lang.String[] getConfiguratorScripts()
           
 org.eclipse.swt.graphics.Image getIcon()
           
 int getId()
           
 ComponentName getQuery()
           
 void init()
          Called when the Component has had all it's attributes set and should be ready for initialization.
 void setConfigDescriptor(NodeDescriptor configDescriptor)
          Sets the configDescriptor.
 void setIcon(org.eclipse.swt.graphics.Image icon)
           
 void setQuery(ComponentName query)
           
 
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

ComponentQuery

public ComponentQuery()
Constructs a new object which will query a registry for components.

Method Detail

setQuery

public void setQuery(ComponentName query)

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

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:

setConfigDescriptor

public void setConfigDescriptor(NodeDescriptor configDescriptor)
Sets the configDescriptor. If this is not set, the default will be used.

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

acceptsChildren

public boolean acceptsChildren()
Overrides:
acceptsChildren in class Component

setIcon

public void setIcon(org.eclipse.swt.graphics.Image icon)
Overrides:
setIcon in class Node
Parameters:
icon -

getConfiguratorScripts

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

getQuery

public ComponentName getQuery()
Returns:

getId

public int getId()
Returns:


Copyright © 2003 . All Rights Reserved.