com.frovi.ss.Tree
Interface INodeSupplier

All Known Implementing Classes:
BaseNodeSupplier

public interface INodeSupplier

INodeSupplier.java Created on 2002-sep-27

Author:
Stefan Sik, ss@frovi.com ss

Method Summary
 java.util.Collection getChildContainerNodes(java.lang.Integer parentNode)
          ContainerNodes (folderNodes) Create a list of nodes that is children to the node with the supplied id "parentNode".
 java.util.Collection getChildLeafNodes(java.lang.Integer parentNode)
          LeafNodes (documentNodes) Create a list of nodes that is children to the node with the supplied id "parentNode".
 BaseNode getRootNode()
           
 boolean hasChildren()
          return true if you will answer the question above
 boolean hasChildren(java.lang.Integer nodeId)
          return true if this node (nodeId) has childnodes
 

Method Detail

hasChildren

public boolean hasChildren(java.lang.Integer nodeId)
return true if this node (nodeId) has childnodes


hasChildren

public boolean hasChildren()
return true if you will answer the question above


getChildContainerNodes

public java.util.Collection getChildContainerNodes(java.lang.Integer parentNode)
ContainerNodes (folderNodes) Create a list of nodes that is children to the node with the supplied id "parentNode". Set the attributes on each node, and if possible also determine if each node itself has children.


getChildLeafNodes

public java.util.Collection getChildLeafNodes(java.lang.Integer parentNode)
LeafNodes (documentNodes) Create a list of nodes that is children to the node with the supplied id "parentNode". Set the attributes on each node, in this case node.setChildren(boolean) has no effect


getRootNode

public BaseNode getRootNode()