KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > frovi > ss > Tree > INodeSupplier


1 package com.frovi.ss.Tree;
2
3 import java.util.Collection JavaDoc;
4
5 import org.infoglue.cms.exception.SystemException;
6
7 /**
8  * INodeSupplier.java
9  * Created on 2002-sep-27
10  * @author Stefan Sik, ss@frovi.com
11  * ss
12  */

13 public interface INodeSupplier
14 {
15     /**
16      * return true if this node (nodeId) has childnodes
17      */

18     public boolean hasChildren(Integer JavaDoc nodeId) throws SystemException, Exception JavaDoc;
19     
20     /**
21      * return true if you will answer the question above
22      */

23     public boolean hasChildren();
24         
25     /**
26      * ContainerNodes (folderNodes)
27      * Create a list of nodes that is children to the node with
28      * the supplied id "parentNode".
29      * Set the attributes on each node, and if possible
30      * also determine if each node itself has children.
31      */

32     public Collection JavaDoc getChildContainerNodes(Integer JavaDoc parentNode) throws SystemException, Exception JavaDoc;
33     
34     /**
35      * LeafNodes (documentNodes)
36      * Create a list of nodes that is children to the node with
37      * the supplied id "parentNode".
38      * Set the attributes on each node, in this case
39      * node.setChildren(boolean) has no effect
40      */

41     public Collection JavaDoc getChildLeafNodes(Integer JavaDoc parentNode);
42     
43     // Optional
44
// public Integer getRootNodeId();
45
// public void setRootNodeId(Integer rootNodeId);
46
public BaseNode getRootNode();
47
48 }
49
Popular Tags