org.geotoolkit.gui.swing.tree
Interface TreeNodeFilter


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.

Since:
3.04
Version:
3.04
Author:
Martin Desruisseaux (Geomatys)
See Also:
Trees.copy(TreeNode, TreeNodeFilter)
Module:
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

accept

boolean accept(TreeNode node)
Returns true if the given node should be copied.

Parameters:
node - The tree node to test for inclusion.
Returns:
true if the given node should be included in the copy.

convertUserObject

Object convertUserObject(TreeNode node,
                         Object userObject)
Returns the user object to assign to the copied node.

Parameters:
node - The original node to copy.
userObject - The user object of the original node.
Returns:
The user object to assign to the copied node, or null if none.


Copyright © 2009-2012 Geotoolkit.org. All Rights Reserved.