|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ITreeNodeWalker
used to traverse the nodes in a hierarchical structure. The nodes are usually of homogeneous in that
the type of nodes is typically defined by an IModel
object.
Method Summary | |
---|---|
Object[] |
getChildren(Object element)
returns the children of the given node. |
Object[] |
getFilteredChildren(Object element)
returns the children of the given node that pass all filteres that were added using the addNodeFilter method. |
Object |
getParent(Object element)
return the parent of the given node. |
boolean |
hasChildren(Object element)
returns whether or not the given node has any children. |
void |
setComponentBridgeMap(Map bridgeMap)
map for associating nodes of heterogeneous types. |
Methods inherited from interface org.eclipse.actf.model.traverse.INodeWalker |
---|
addNodeFilter, getFilteredSuccessorNodes, getPredecessorNodes, getStartNodes, getSuccessorNodes, removeAllFilters, removeNodeFilter |
Method Detail |
---|
Object[] getChildren(Object element) throws InvalidComponentException
element
- - node of tree
InvalidComponentException
- if component is disposed or otherwise invalidObject[] getFilteredChildren(Object element) throws InvalidComponentException
addNodeFilter
method.
element
- - node of tree
InvalidComponentException
- if component is disposed or otherwise invalidINodeWalker.getFilteredSuccessorNodes(Object)
,
INodeWalker.addNodeFilter(INodeFilter)
boolean hasChildren(Object element) throws InvalidComponentException
element
- - node of tree
true
if node has children, false
otherwise
InvalidComponentException
- if component is disposed or otherwise invalidObject getParent(Object element) throws InvalidComponentException
element
- - node of tree
null
if node has no parent
InvalidComponentException
- if component is disposed or otherwise invalidvoid setComponentBridgeMap(Map bridgeMap)
bridgeMap
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |