Hi
I have extended the DefaultTreeNode class and added my own customized index to each TreeNode as a field to the derived class.
Now I want to implement a corresponding method to search for the particular tree node based on its above defined unique index.
How to search for that tree node based upon my own index?
What I'm doing is that, first of all I'm trying to get the TreeModel
out of the tree. Then trying to use the TreeModel.walk-nodes with the
proc-type{TreeNode}:bool .
but I'm not able to implement it properly.
Any pointer or other apporoach?
I have extended the DefaultTreeNode class and added my own customized index to each TreeNode as a field to the derived class.
Now I want to implement a corresponding method to search for the particular tree node based on its above defined unique index.
How to search for that tree node based upon my own index?
What I'm doing is that, first of all I'm trying to get the TreeModel
out of the tree. Then trying to use the TreeModel.walk-nodes with the
proc-type{TreeNode}:bool .
but I'm not able to implement it properly.
Any pointer or other apporoach?
Tags:
tree,
traversal,
walk-nodes