com.metamatrix.console.ui.views.deploy.event
Class ConfigurationTreeModelEvent

java.lang.Object
  extended by java.util.EventObject
      extended by com.metamatrix.console.ui.views.deploy.event.ConfigurationChangeEvent
          extended by com.metamatrix.console.ui.views.deploy.event.ConfigurationTreeModelEvent
All Implemented Interfaces:
java.io.Serializable

public final class ConfigurationTreeModelEvent
extends ConfigurationChangeEvent

The ConfigurationTreeModelEvent is used to notify ConfigurationTreeModelListeners that a change in a tree model has occurred.

Since:
Golden Gate
Version:
1.0
Author:
Dan Florian
See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.metamatrix.console.ui.views.deploy.event.ConfigurationChangeEvent
ancestors, CONFIGURATION, DELETED, DEPLOYED_PSC, DEPLOYED_SERVICE, HOST, MODIFIED, NEW, PROCESS, PRODUCT, PSC_DEFN, REFRESH_END, REFRESH_START, SERVICE_DEFN, type
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ConfigurationTreeModelEvent(int theType, DefaultTreeNode theChangedNode, DefaultTreeNode theConfigNode, DefaultTreeNode[] theAncestorNodes)
          Constructs a ConfigurationTreeModelEvent of the given type.
 
Method Summary
 DefaultTreeNode[] getAncestorNodes()
          Gets the ancestors of the changed object.
 DefaultTreeNode getConfigurationNode()
          Gets the configuration node where the change took place.
 DefaultTreeNode getDeployedPscNode()
          Gets the deployed PSC node if either a deployed PSC node was the event source or an ancestor.
 DefaultTreeNode getDeployedServiceNode()
          Gets the deployed service node if either a deployed service node was the event source or an ancestor.
 DefaultTreeNode getHostNode()
          Gets the host node if either a host node was the event source or an ancestor.
 DefaultTreeNode getProcessNode()
          Gets the process node if either a process node was the event source or an ancestor.
 DefaultTreeNode getProductNode()
          Gets the product node if either a product node was the event source or an ancestor.
 DefaultTreeNode getPscDefinitionNode()
          Gets the PSC definition node if either a PSC definition node was the event source or an ancestor.
 DefaultTreeNode getServiceDefinitionNode()
          Gets the service definition node if either a service definition node was the event source or an ancestor.
 DefaultTreeNode getSourceNode()
          The source node of the event.
 DefaultTreeNode getSourceNodeParent()
          The source node of the event.
protected  void setAncestors(java.lang.Object[] theAncestors)
          Sets the ancestor object of the changed object.
 
Methods inherited from class com.metamatrix.console.ui.views.deploy.event.ConfigurationChangeEvent
getAncestorIndex, getAncestors, getConfiguration, getDeployedPsc, getDeployedService, getHost, getProcess, getProduct, getPscDefinition, getServiceDefinition, getType, isConfigurationChange, isDeleted, isDeployedPscChange, isDeployedServiceChange, isHostChange, isModified, isNew, isProcessChange, isProductChange, isPscDefinitionChange, isRefreshEnd, isRefreshStart, isServiceDefinitionChange, paramString
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConfigurationTreeModelEvent

public ConfigurationTreeModelEvent(int theType,
                                   DefaultTreeNode theChangedNode,
                                   DefaultTreeNode theConfigNode,
                                   DefaultTreeNode[] theAncestorNodes)
                            throws java.lang.IllegalArgumentException,
                                   java.lang.NullPointerException
Constructs a ConfigurationTreeModelEvent of the given type.

Parameters:
theType - the event type
theChangedNode - the node whose state has changed
theConfigNode - the configuration node where the change occurred
theAncestorNodes - the ancestor nodes starting with the parent
Throws:
java.lang.IllegalArgumentException - if type is not valid, if the changed node content is null, or if the configuration node content is null.
java.lang.NullPointerException - if the changed node is null, or if the configuration node is null.
Method Detail

getAncestorNodes

public DefaultTreeNode[] getAncestorNodes()
Gets the ancestors of the changed object.

Returns:
the ancestor nodes

getConfigurationNode

public DefaultTreeNode getConfigurationNode()
Gets the configuration node where the change took place.

Returns:
the configuration node

getDeployedPscNode

public DefaultTreeNode getDeployedPscNode()
Gets the deployed PSC node if either a deployed PSC node was the event source or an ancestor.

Returns:
the deployed PSC node or null

getDeployedServiceNode

public DefaultTreeNode getDeployedServiceNode()
Gets the deployed service node if either a deployed service node was the event source or an ancestor.

Returns:
the deployed service node or null

getHostNode

public DefaultTreeNode getHostNode()
Gets the host node if either a host node was the event source or an ancestor.

Returns:
the host node or null

getProcessNode

public DefaultTreeNode getProcessNode()
Gets the process node if either a process node was the event source or an ancestor.

Returns:
the process node or null

getProductNode

public DefaultTreeNode getProductNode()
Gets the product node if either a product node was the event source or an ancestor.

Returns:
the product node or null

getPscDefinitionNode

public DefaultTreeNode getPscDefinitionNode()
Gets the PSC definition node if either a PSC definition node was the event source or an ancestor.

Returns:
the PSC definition node or null

getServiceDefinitionNode

public DefaultTreeNode getServiceDefinitionNode()
Gets the service definition node if either a service definition node was the event source or an ancestor.

Returns:
the service definition node or null

getSourceNode

public DefaultTreeNode getSourceNode()
The source node of the event.

Returns:
the source node

getSourceNodeParent

public DefaultTreeNode getSourceNodeParent()
The source node of the event.

Returns:
the source node

setAncestors

protected void setAncestors(java.lang.Object[] theAncestors)
Sets the ancestor object of the changed object.

Overrides:
setAncestors in class ConfigurationChangeEvent
Parameters:
theAncestors - the ancestor objects


Copyright © 2009. All Rights Reserved.