View Javadoc

1   package net.sf.statcvs.pages;
2   
3   import java.util.List;
4   
5   public interface NavigationNode {
6   
7       /**
8        * Sets the page's parent. The generated page will link back to
9        * the parent.
10       */
11      void setParent(NavigationNode parent);
12  
13      /**
14       * Sets a list of {@link Page}s that are siblings of this page.
15       * The generated page will contain a navigation list that links
16       * to all siblings. The sibling list may contain the page
17       * itself.
18       * @param siblingsTitle Title for navigation list, e.g. "Monthly Reports"
19       * @param sibling A list of {@link Page}s
20       */
21      void setSiblings(String siblingsTitle, List siblingPages);
22  
23      void setShowLinkToPreviousSibling(boolean showLink);
24  
25      String getURL();
26  
27      String getShortTitle();
28  
29      String getFullTitle();
30  
31      void write();
32  
33      String asParentLink();
34  }