org.freehep.jas.plugin.tree
Class DefaultFTreeNodeStructureProvider

java.lang.Object
  extended byorg.freehep.jas.plugin.tree.DefaultFTreeNodeStructureProvider
All Implemented Interfaces:
FTreeNodeStructureProvider

public class DefaultFTreeNodeStructureProvider
extends java.lang.Object
implements FTreeNodeStructureProvider

The default implementation of FTreeNodeStructureProvider.


Constructor Summary
DefaultFTreeNodeStructureProvider()
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultFTreeNodeStructureProvider

public DefaultFTreeNodeStructureProvider()
Method Detail

addNode

public boolean addNode(FTreeNode node)
Description copied from interface: FTreeNodeStructureProvider
Add an FTreeNode to the node for which the structure is being provided.

Specified by:
addNode in interface FTreeNodeStructureProvider
Parameters:
node - The FTreeNode to be added.
Returns:
true if the node was succesfully added.

removeNode

public boolean removeNode(FTreeNode node)
Description copied from interface: FTreeNodeStructureProvider
Remove an FTreeNode from the node for which the structure is being provided.

Specified by:
removeNode in interface FTreeNodeStructureProvider
Parameters:
node - The node to be removed.
Returns:
true if the node was succesfully removed.

nodes

public java.util.List nodes()
Description copied from interface: FTreeNodeStructureProvider
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).

Specified by:
nodes in interface FTreeNodeStructureProvider
Returns:
The list of the node's children.