SmartFrog 3.10.000

org.smartfrog.services.management
Class DeployTreeModelSF

java.lang.Object
  extended by org.smartfrog.services.management.DeployTreeModelSF
All Implemented Interfaces:
javax.swing.tree.TreeModel

public class DeployTreeModelSF
extends java.lang.Object
implements javax.swing.tree.TreeModel

DeployTreeModelSF is the deployable tree model for SmartFrog component hierarchy.


Field Summary
protected  java.util.Vector listeners
          Listeners.
 
Constructor Summary
DeployTreeModelSF()
          Constructs the DeployTreeModelSF object
DeployTreeModelSF(java.lang.Object entry, boolean showRootProcessName, boolean showCDasChild)
          Constructs the DeployTreeModelSF object with the deploy entry
 
Method Summary
 void add(java.lang.String node)
          Not implemented.
 void addTreeModelListener(javax.swing.event.TreeModelListener l)
          Implements addTreeModelListener () method defined in java swing TreeModel.
 java.lang.Object getChild(java.lang.Object parent, int index)
          Implements getChild () method defined in java swing TreeModel.
 int getChildCount(java.lang.Object parent)
          Gets the childCount attribute of the DeployTreeModelSF component
 int getIndexOfChild(java.lang.Object parent, java.lang.Object child)
          Gets the indexOfChild attribute of the DeployTreeModelSF object
 java.lang.Object getRoot()
          Gets the root attribute of the DeployTreeModelSF object
 boolean isLeaf(java.lang.Object node)
          Checks if the deploy entry is the leaf component in the component's tree
 void removeTreeModelListener(javax.swing.event.TreeModelListener l)
          Implements removeTreeModelListener () method defined in java swing TreeModel.
 void valueForPathChanged(javax.swing.tree.TreePath path, java.lang.Object newValue)
          Not implemented.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

listeners

protected java.util.Vector listeners
Listeners.

Constructor Detail

DeployTreeModelSF

public DeployTreeModelSF()
Constructs the DeployTreeModelSF object


DeployTreeModelSF

public DeployTreeModelSF(java.lang.Object entry,
                         boolean showRootProcessName,
                         boolean showCDasChild)
Constructs the DeployTreeModelSF object with the deploy entry

Parameters:
entry - deploy entry
showRootProcessName - flag indicating to show rootprocess name
showCDasChild - flag indicating to show CD as child
Method Detail

getRoot

public java.lang.Object getRoot()
Gets the root attribute of the DeployTreeModelSF object

Specified by:
getRoot in interface javax.swing.tree.TreeModel
Returns:
The root value

getChild

public java.lang.Object getChild(java.lang.Object parent,
                                 int index)
Implements getChild () method defined in java swing TreeModel.

Specified by:
getChild in interface javax.swing.tree.TreeModel
Parameters:
parent - Deploy entry object acting as a parent component
index - index
Returns:
The child value

getChildCount

public int getChildCount(java.lang.Object parent)
Gets the childCount attribute of the DeployTreeModelSF component

Specified by:
getChildCount in interface javax.swing.tree.TreeModel
Parameters:
parent - Deploy entry parent
Returns:
The childCount value

isLeaf

public boolean isLeaf(java.lang.Object node)
Checks if the deploy entry is the leaf component in the component's tree

Specified by:
isLeaf in interface javax.swing.tree.TreeModel
Parameters:
node - Node (deploy entry)
Returns:
true if that node is leaf node else false

valueForPathChanged

public void valueForPathChanged(javax.swing.tree.TreePath path,
                                java.lang.Object newValue)
Not implemented.

Specified by:
valueForPathChanged in interface javax.swing.tree.TreeModel
Parameters:
path -
newValue -

getIndexOfChild

public int getIndexOfChild(java.lang.Object parent,
                           java.lang.Object child)
Gets the indexOfChild attribute of the DeployTreeModelSF object

Specified by:
getIndexOfChild in interface javax.swing.tree.TreeModel
Parameters:
parent - Deploy Entry object
child - Child of the deploy entry
Returns:
The indexOfChild value

addTreeModelListener

public void addTreeModelListener(javax.swing.event.TreeModelListener l)
Implements addTreeModelListener () method defined in java swing TreeModel.

Specified by:
addTreeModelListener in interface javax.swing.tree.TreeModel
Parameters:
l - The feature to be added to the TreeModelListener attribute

removeTreeModelListener

public void removeTreeModelListener(javax.swing.event.TreeModelListener l)
Implements removeTreeModelListener () method defined in java swing TreeModel.

Specified by:
removeTreeModelListener in interface javax.swing.tree.TreeModel
Parameters:
l - tree model listener object

add

public void add(java.lang.String node)
Not implemented.

Parameters:
node -

SmartFrog CORE 3.10.000

(C) Copyright 1998-2006 Hewlett-Packard Development Company, LP