net.sf.statcvs.pages

Class PageGroup

Implemented Interfaces:
NavigationNode

public class PageGroup
extends Object
implements NavigationNode

Constructor Summary

PageGroup(String title)
PageGroup(String title, boolean connectSiblings)

Method Summary

void
add(NavigationNode page)
String
asLinkList()
String
asParentLink()
String
getFullTitle()
String
getShortTitle()
String
getURL()
void
setMainPage(NavigationNode page)
void
setParent(NavigationNode parentPage)
Sets the page's parent.
void
setShowLinkToPreviousSibling(boolean showLink)
void
setSiblings(String siblingsTitle, List siblingPages)
Sets a list of Pages that are siblings of this page.
void
write()

Constructor Details

PageGroup

public PageGroup(String title)

PageGroup

public PageGroup(String title,
                 boolean connectSiblings)

Method Details

add

public void add(NavigationNode page)

asLinkList

public String asLinkList()

asParentLink

public String asParentLink()
Specified by:
asParentLink in interface NavigationNode

getFullTitle

public String getFullTitle()
Specified by:
getFullTitle in interface NavigationNode

getShortTitle

public String getShortTitle()
Specified by:
getShortTitle in interface NavigationNode

getURL

public String getURL()
Specified by:
getURL in interface NavigationNode

setMainPage

public void setMainPage(NavigationNode page)

setParent

public void setParent(NavigationNode parentPage)
Sets the page's parent. The generated page will link back to the parent.
Specified by:
setParent in interface NavigationNode

setShowLinkToPreviousSibling

public void setShowLinkToPreviousSibling(boolean showLink)
Specified by:
setShowLinkToPreviousSibling in interface NavigationNode

setSiblings

public void setSiblings(String siblingsTitle,
                        List siblingPages)
Sets a list of Pages that are siblings of this page. The generated page will contain a navigation list that links to all siblings. The sibling list may contain the page itself.
Specified by:
setSiblings in interface NavigationNode
Parameters:
siblingsTitle - Title for navigation list, e.g. "Monthly Reports"

write

public void write()
Specified by:
write in interface NavigationNode