org.freehep.jas.plugin.tree
Interface FTreeNodeStructureProvider

All Known Implementing Classes:
DefaultFTreeNodeStructureProvider

public interface FTreeNodeStructureProvider

Provides the structure for an FTreeNode. Children are added and removed via this interface that also provides the list the sorted children.


Method Summary
 boolean addNode(FTreeNode node)
          Add an FTreeNode to the node for which the structure is being provided.
 java.util.List nodes()
          Get the list of the children for this node.
 boolean removeNode(FTreeNode node)
          Remove an FTreeNode from the node for which the structure is being provided.
 

Method Detail

addNode

public boolean addNode(FTreeNode node)
Add an FTreeNode to the node for which the structure is being provided.

Parameters:
node - The FTreeNode to be added.
Returns:
true if the node was succesfully added.

removeNode

public boolean removeNode(FTreeNode node)
Remove an FTreeNode from the node for which the structure is being provided.

Parameters:
node - The node to be removed.
Returns:
true if the node was succesfully removed.

nodes

public java.util.List nodes()
Get the list of the children for this node. The children's order in the list is the way they will be displayed on the tree (unless other sorting is applyed).

Returns:
The list of the node's children.