|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.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
|
Field Summary | |
---|---|
static java.lang.String |
DEPLOYMENTS_HDR
The text of all the deployements 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 |
addDeployedService(DeployedComponent theService,
VMComponentDefn theProcess,
Host theHost,
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 |
deleteHost(Host theHost,
Configuration theConfig)
Deletes a host node from the model. |
DefaultTreeNode |
getUserObjectNode(java.lang.Object theUserObject)
Gets the requested user object's node. |
void |
init(Configuration theConfig)
|
boolean |
isHeaderNode(DefaultTreeNode theNode)
Indicates if the given node is a deployments header node or a PSC definitions header node. |
void |
modifyDeployedProcess(VMComponentDefn theProcess,
Host theHost,
Configuration theConfig)
Modifies a deployed host node in the model. |
void |
modifyDeployedService(DeployedComponent theService,
VMComponentDefn theProcess,
Host theHost,
Configuration theConfig)
Modifies a service definitions node in the model. |
void |
modifyHost(Host theHost,
Configuration theConfig)
Modifies a host node in the model. |
void |
modifyServiceDefintion(ServiceComponentDefn theService,
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
Constructor Detail |
---|
public ConfigurationTreeModel() throws ExternalException
ConfigurationTreeModel
.
ExternalException
- if problems occur during constructionMethod Detail |
---|
public void init(Configuration theConfig)
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 addDeployedService(DeployedComponent theService, VMComponentDefn theProcess, Host theHost, Configuration theConfig)
theService
- the user object of the deployed service definition node
being createdtheProcess
- the user object of the new node's VMComponentDefn
ancestor nodetheHost
- the users object of the new node's Host 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 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 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 modifyServiceDefintion(ServiceComponentDefn theService, 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 modifyDeployedService(DeployedComponent theService, VMComponentDefn theProcess, Host theHost, 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 |