org.eclipse.actf.model.javapp.traverse
Class ContainerTreeNodeWalker

java.lang.Object
  extended by org.eclipse.actf.model.traverse.AbstractNodeWalker
      extended by org.eclipse.actf.model.traverse.AbstractTreeNodeWalker
          extended by org.eclipse.actf.model.javapp.traverse.ContainerTreeNodeWalker
All Implemented Interfaces:
INodeWalker, ITreeNodeWalker

public class ContainerTreeNodeWalker
extends AbstractTreeNodeWalker

implementation of a TreeWalker for the Java Swing GUI framework. Nodes are typically instances of java.awt.Container.

Author:
Mike Squillace

Field Summary
 
Fields inherited from class org.eclipse.actf.model.traverse.AbstractTreeNodeWalker
clCache, componentBridgeMap, configuration
 
Fields inherited from class org.eclipse.actf.model.traverse.AbstractNodeWalker
nodeFilters
 
Constructor Summary
ContainerTreeNodeWalker()
           
 
Method Summary
 Object[] getChildren(Object element)
          returns the children of the given node.
 Object getParent(Object element)
          return the parent of the given node.
 Object[] getStartNodes()
          get the starting nodes of the graph.
 
Methods inherited from class org.eclipse.actf.model.traverse.AbstractTreeNodeWalker
getBridgedChild, getBridgedParent, getFilteredChildren, getFilteredSuccessorNodes, getPredecessorNodes, getSuccessorNodes, hasChildren, setComponentBridgeMap
 
Methods inherited from class org.eclipse.actf.model.traverse.AbstractNodeWalker
addNodeFilter, removeAllFilters, removeNodeFilter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.actf.model.traverse.INodeWalker
addNodeFilter, removeAllFilters, removeNodeFilter
 

Constructor Detail

ContainerTreeNodeWalker

public ContainerTreeNodeWalker()
Method Detail

getChildren

public Object[] getChildren(Object element)
                     throws InvalidComponentException
returns the children of the given node.

Parameters:
element - - node of tree
Returns:
children of given node or empty array if no children are found
Throws:
InvalidComponentException - if component is disposed or otherwise invalid

getParent

public Object getParent(Object element)
                 throws InvalidComponentException
return the parent of the given node.

Parameters:
element - - node of tree
Returns:
parent of given node or null if node has no parent
Throws:
InvalidComponentException - if component is disposed or otherwise invalid

getStartNodes

public Object[] getStartNodes()
Description copied from interface: INodeWalker
get the starting nodes of the graph. These are the nodes of the graph that have no predecessors.

Returns:
starting nodes of graph