com.ptc.core.ca.co.client.tree
Class CoTreeUtils

java.lang.Object
  extended by com.ptc.core.ca.co.client.tree.CoTreeUtils

Deprecated.

@Deprecated
public abstract class CoTreeUtils
extends Object

The utility class implementing tree related utility methods.

Supported API: true

Extendable: false


Method Summary
static CoTree findTree(CoTreeNode node, CoEnvData envData)
          Deprecated. Returns a tree element for a given tree node element

Supported API: true
static CoTreeNode getAnscestorTreeNode(CoElement element, CoEnvData envData)
          Deprecated. Returns an ancestor tree node element for a given conceptual element.
static CoAction getDescendentTreeAction(CoTreeNode treeNode, CoEnvData envData)
          Deprecated. Returns a tree action descendent element of the specified tree node.
static Iterator getTreeNodeIterator(CoTree tree, CoEnvData envData)
          Deprecated. Returns iterator over a collection of tree node elements for a given tree.
static ArrayList getTreeNodeList(CoTree tree, CoEnvData envData)
          Deprecated. Returns a list of tree node elements for a given tree.
static boolean isNodeVisible(CoTreeNode treeNode, CoEnvData envData)
          Deprecated. Returns whether a tree node can be visible.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

findTree

public static CoTree findTree(CoTreeNode node,
                              CoEnvData envData)
                       throws WTException
Deprecated. 
Returns a tree element for a given tree node element

Supported API: true

Parameters:
node -
envData -
Returns:
CoTree
Throws:
WTException

getTreeNodeList

public static ArrayList getTreeNodeList(CoTree tree,
                                        CoEnvData envData)
                                 throws WTException
Deprecated. 
Returns a list of tree node elements for a given tree. Collects elements using preorder traversal algorithm.

Supported API: true

Parameters:
tree -
envData -
Returns:
ArrayList
Throws:
WTException

getTreeNodeIterator

public static Iterator getTreeNodeIterator(CoTree tree,
                                           CoEnvData envData)
                                    throws WTException
Deprecated. 
Returns iterator over a collection of tree node elements for a given tree. The iterator traverses a treee using preorder traversal algorithm.

Supported API: true

Parameters:
tree -
envData -
Returns:
Iterator
Throws:
WTException

getDescendentTreeAction

public static CoAction getDescendentTreeAction(CoTreeNode treeNode,
                                               CoEnvData envData)
                                        throws WTException
Deprecated. 
Returns a tree action descendent element of the specified tree node. An action is considered to a a tree action when it has a model of type CoTreeNodeActionModel.

Supported API: true

Parameters:
treeNode -
envData -
Returns:
CoAction
Throws:
WTException

getAnscestorTreeNode

public static CoTreeNode getAnscestorTreeNode(CoElement element,
                                              CoEnvData envData)
                                       throws WTException
Deprecated. 
Returns an ancestor tree node element for a given conceptual element.

Supported API: true

Parameters:
element -
envData -
Returns:
CoTreeNode
Throws:
WTException

isNodeVisible

public static boolean isNodeVisible(CoTreeNode treeNode,
                                    CoEnvData envData)
                             throws WTException
Deprecated. 
Returns whether a tree node can be visible. A root tree node is not visible when showRootNode flag is set to false.

Supported API: true

Parameters:
treeNode -
envData -
Returns:
boolean
Throws:
WTException