org.eclipse.actf.model.javapp.traverse
Class ContainerTreeNodeWalker
java.lang.Object
org.eclipse.actf.model.traverse.AbstractNodeWalker
org.eclipse.actf.model.traverse.AbstractTreeNodeWalker
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ContainerTreeNodeWalker
public ContainerTreeNodeWalker()
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