|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface TreeNodeFilter
A filter used during the copy of a tree. This filter can be used for including only a subset of the original nodes, and to change the user object assigned to that node.
Trees.copy(TreeNode, TreeNodeFilter)
| utility/geotk-utility (download) | View source code for this class |
| Method Summary | |
|---|---|
boolean |
accept(TreeNode node)
Returns true if the given node should be copied. |
Object |
convertUserObject(TreeNode node,
Object userObject)
Returns the user object to assign to the copied node. |
| Method Detail |
|---|
boolean accept(TreeNode node)
true if the given node should be copied.
node - The tree node to test for inclusion.
true if the given node should be included in the copy.
Object convertUserObject(TreeNode node,
Object userObject)
node - The original node to copy.userObject - The user object of the original node.
null if none.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||