|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.metamatrix.toolbox.ui.widget.tree.DefaultTreeModel
com.metamatrix.console.ui.views.deploy.model.ConfigurationTreeModel
public final class ConfigurationTreeModel
The ConfigurationTreeModel
is the tree model used for
deployments and Product Service Configurations (PSC) configuration
objects.
Nested Class Summary | |
---|---|
class |
ConfigurationTreeModel.HostWrapper
|
class |
ConfigurationTreeModel.PscWrapper
The PscWrapper class wraps a ProductServiceConfig so
that PSC definitions and deployed PSCs can be distinguished. |
Field Summary | |
---|---|
static java.lang.String |
DEPLOYMENTS_HDR
The text of all the deployements header nodes. |
static java.lang.String |
PSC_DEFS_HDR
The text of all the PSC definitions header nodes. |
Fields inherited from class com.metamatrix.toolbox.ui.widget.tree.DefaultTreeModel |
---|
MODEL_CHANGED, NODE_ADDED, NODE_CHANGED, NODE_REMOVED, NODES_CHANGED |
Fields inherited from interface com.metamatrix.toolbox.ui.widget.tree.TreeConstants |
---|
NAME_PROPERTY |
Constructor Summary | |
---|---|
ConfigurationTreeModel()
Constructs and ConfigurationTreeModel . |
Method Summary | |
---|---|
void |
addConfigurationTreeModelListener(ConfigurationTreeModelListener theListener)
Adds the given listener to those being notified. |
void |
addDeployedHost(Host theHost,
Configuration theConfig)
Adds a host node to the model. |
void |
addDeployedProcess(VMComponentDefn theProcess,
Host theHost,
Configuration theConfig)
Adds a process node to the model. |
void |
addDeployedPsc(ProductServiceConfig thePsc,
VMComponentDefn theProcess,
Host theHost,
Configuration theConfig)
Adds a deployed PSC node to the model. |
void |
addPscDefn(ProductServiceConfig thePsc,
ProductType theProduct,
Configuration theConfig)
Adds a PSC definition node to the model. |
void |
addServiceDefinition(ServiceComponentDefn theService,
ProductServiceConfig thePsc,
ProductType theProduct,
Configuration theConfig)
Adds a service definition node to the model. |
void |
configurationChanged(ConfigurationChangeEvent theEvent)
Invoked when a ConfigurationChangeEvent occurs. |
boolean |
contains(DefaultTreeNode theNode)
|
void |
deleteDeployedProcess(VMComponentDefn theProcess,
Host theHost,
Configuration theConfig)
Deletes a process node from the model. |
void |
deleteDeployedPsc(ProductServiceConfig thePsc,
VMComponentDefn theProcess,
Host theHost,
Configuration theConfig)
Deletes a deployed PSC node from the model. |
void |
deleteHost(Host theHost,
Configuration theConfig)
Deletes a host node from the model. |
void |
deletePscDefintion(ProductServiceConfig thePsc,
ProductType theProduct,
Configuration theConfig)
Deletes a PSC definition node from the model. |
DefaultTreeNode |
getDeploymentsHeaderNode(Configuration theConfig)
Gets the deployments header node for the given configuration. |
DefaultTreeNode |
getPscDefinitionsHeaderNode(Configuration theConfig)
Gets the PSC definitions header node for the given configuration. |
DefaultTreeNode |
getPscNode(ProductServiceConfig thePsc,
Configuration theConfig)
Gets the requested PSC definition node. |
DefaultTreeNode |
getPscNode(ProductServiceConfig thePsc,
VMComponentDefn theProcess)
Gets the requested deployed PSC node. |
DefaultTreeNode |
getUserObjectNode(java.lang.Object theUserObject)
Gets the requested user object's node. |
boolean |
isDeploymentsHeaderNode(DefaultTreeNode theNode)
Indicates if the given node is a deployments header node. |
boolean |
isHeaderNode(DefaultTreeNode theNode)
Indicates if the given node is a deployments header node or a PSC definitions header node. |
boolean |
isPscDefinitionsHeaderNode(DefaultTreeNode theNode)
Indicates if the given node is a PSC definitions header node. |
void |
modifyDeployedProcess(VMComponentDefn theProcess,
Host theHost,
Configuration theConfig)
Modifies a deployed host node in the model. |
void |
modifyHost(Host theHost,
Configuration theConfig)
Modifies a host node in the model. |
void |
modifyPscDefinition(ProductServiceConfig thePsc,
ProductType theProduct,
Configuration theConfig)
Modifies a PSC definitions node in the model. |
void |
modifyServiceDefintion(ServiceComponentDefn theService,
ProductServiceConfig thePsc,
ProductType theProduct,
Configuration theConfig)
Modifies a service definitions node in the model. |
void |
refresh()
Clears all nodes and all caches. |
void |
removeConfigurationTreeModelListener(ConfigurationTreeModelListener theListener)
Removes the given listener from those being notified. |
void |
removeUserObject(java.lang.Object theUserObject)
Removes the user object's node and all it's children nodes. |
Methods inherited from class com.metamatrix.toolbox.ui.widget.tree.DefaultTreeModel |
---|
addNode, addTreeModelListener, addVetoedChangeListener, createDefaultTreeView, executeTransaction, fireChildrenChangedEvent, fireEvent, fireEvent, fireEvent, fireModelChangedEvent, fireNodeAddedEvent, fireNodeChangedEvent, fireNodeRemovedEvent, fireVetoedChangeEvent, getChild, getChildCount, getChildIndex, getEditor, getIndexOfChild, getName, getPath, getPath, getRoot, getTransactionSource, getTreeView, initializeDefaultTreeModel, isLeaf, isRootHidden, moveNode, moveNode, removeNode, removeTreeModelListener, removeVetoedChangeListener, setName, setTransactionSource, setTreeView, setTreeWidget, valueForPathChanged |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String DEPLOYMENTS_HDR
public static final java.lang.String PSC_DEFS_HDR
Constructor Detail |
---|
public ConfigurationTreeModel() throws ExternalException
ConfigurationTreeModel
.
ExternalException
- if problems occur during constructionMethod Detail |
---|
public void addConfigurationTreeModelListener(ConfigurationTreeModelListener theListener)
theListener
- the listener who wants to be notifiedpublic void addDeployedHost(Host theHost, Configuration theConfig)
theHost
- the user object of the host node being createdtheConfig
- the user object of the new node's configuration
ancestor nodepublic void addDeployedProcess(VMComponentDefn theProcess, Host theHost, Configuration theConfig)
theProcess
- the user object of the process node being createdtheHost
- the user object of the new node's host ancestor node
is being addedtheConfig
- the user object of the new node's configuration
ancestor nodepublic void addDeployedPsc(ProductServiceConfig thePsc, VMComponentDefn theProcess, Host theHost, Configuration theConfig)
thePsc
- the user object of the deployed PSC node being createdtheProcess
- the user object of the new node's process ancestor nodetheHost
- the user object of the new node's host ancestor nodetheConfig
- the user object of the new node's configuration ancestor
nodepublic void addPscDefn(ProductServiceConfig thePsc, ProductType theProduct, Configuration theConfig)
thePsc
- the user object of the PSC definition node being createdtheProduct
- the user object of the new node's product ancestor nodetheConfig
- the user object of the new node's configuration
ancestor nodepublic void addServiceDefinition(ServiceComponentDefn theService, ProductServiceConfig thePsc, ProductType theProduct, Configuration theConfig)
theService
- the user object of the service definition node
being createdthePsc
- the user object of the new node's PSC definition
ancestor nodetheProduct
- the users object of the new node's product ancestor nodetheConfig
- the user object of the new node's configuration
ancestor nodepublic void configurationChanged(ConfigurationChangeEvent theEvent)
ConfigurationChangeEvent
occurs.
configurationChanged
in interface ConfigurationChangeListener
theEvent
- the event to processpublic boolean contains(DefaultTreeNode theNode)
public void deleteHost(Host theHost, Configuration theConfig)
theHost
- the user object of the host node being deletedtheConfig
- the user object of the deleted node's configuration
ancestor nodepublic void deleteDeployedProcess(VMComponentDefn theProcess, Host theHost, Configuration theConfig)
theProcess
- the user object of the process node being createdtheHost
- the user object of the deleted node's host ancestor nodetheConfig
- the user object of the deleted node's configuration
ancestor nodepublic void deleteDeployedPsc(ProductServiceConfig thePsc, VMComponentDefn theProcess, Host theHost, Configuration theConfig)
thePsc
- the user object of the deployed PSC node being createdtheProcess
- the user object of the deleted node's process
ancestor nodetheHost
- the user object of the deleted node's host ancestor nodetheConfig
- the user object of the deleted node's configuration
ancestor nodepublic void deletePscDefintion(ProductServiceConfig thePsc, ProductType theProduct, Configuration theConfig)
thePsc
- the user object of the PSC definition node being deletedtheProduct
- the user object of the deleted node's product
ancestor nodetheConfig
- the user object of the deleted node's configuration
ancestor nodepublic DefaultTreeNode getDeploymentsHeaderNode(Configuration theConfig)
theConfig
- the configuration whose header node is being requested
public DefaultTreeNode getPscDefinitionsHeaderNode(Configuration theConfig)
theConfig
- the configuration whose header node is being requested
public DefaultTreeNode getPscNode(ProductServiceConfig thePsc, Configuration theConfig)
thePsc
- the user object of the PSC definition nodetheConfig
- the user object of the PSC definition node's configuration
ancestor nodepublic DefaultTreeNode getPscNode(ProductServiceConfig thePsc, VMComponentDefn theProcess)
thePsc
- the user object of the deployed PSC nodetheProcess
- the user object of the deployed PSC node's process
ancestor nodepublic DefaultTreeNode getUserObjectNode(java.lang.Object theUserObject)
theUserObject
- the user object whose node is being requested
public boolean isHeaderNode(DefaultTreeNode theNode)
theNode
- the node being checked
true
if the node is a header node;
false
otherwise.public boolean isDeploymentsHeaderNode(DefaultTreeNode theNode)
theNode
- the node being checked
true
if the node is a deployments header node;
false
otherwise.public boolean isPscDefinitionsHeaderNode(DefaultTreeNode theNode)
theNode
- the node being checked
true
if the node is a PSC definitions header node;
false
otherwise.public void modifyDeployedProcess(VMComponentDefn theProcess, Host theHost, Configuration theConfig)
theProcess
- the user object of the node being modifiedtheHost
- the user object of the modified node's host ancestor nodetheConfig
- the user object of the modified node's configuration
ancestor nodepublic void modifyHost(Host theHost, Configuration theConfig)
theHost
- the user object of the node being modifiedtheConfig
- the user object of the modified node's configuration
ancestor nodepublic void modifyPscDefinition(ProductServiceConfig thePsc, ProductType theProduct, Configuration theConfig)
thePsc
- the user object of the node being modifiedtheProduct
- the user object of the modified node's product
ancestor nodetheConfig
- the user object of the modified node's configuration
ancestor nodepublic void modifyServiceDefintion(ServiceComponentDefn theService, ProductServiceConfig thePsc, ProductType theProduct, Configuration theConfig)
theService
- the user object of the node being modifiedthePsc
- the user object of the modified node's PSC definition
ancestor nodetheProduct
- the user object of the modified node's product
ancestor nodetheConfig
- the user object of the modified node's configuration
ancestor nodepublic void refresh()
public void removeConfigurationTreeModelListener(ConfigurationTreeModelListener theListener)
theListener
- the listener being removedpublic void removeUserObject(java.lang.Object theUserObject)
theUserObject
- the user object being removed
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |