Package net.sf.statcvs.pages
Class Page
java.lang.Object
net.sf.statcvs.pages.Page
- All Implemented Interfaces:
NavigationNode
-
Constructor Summary
ConstructorsConstructorDescriptionPage(ReportConfig config, String fileName, String shortTitle, String fullTitle) Creates a new page. -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(ChartImage chart) voidadd(ChartImage chart, String linkURL) voidvoidvoidadd(TableReport table) voidaddAttribute(String key, double value, int decimalPlaces) voidaddAttribute(String key, double value, int decimalPlaces, String unit) voidaddAttribute(String key, int value) voidaddAttribute(String key, int value, String unit) voidaddAttribute(String key, String value) voidaddAttribute(String key, Date value) voidaddChild(NavigationNode child) voidvoidaddRawAttribute(String key, String rawValue) voidvoidaddSection(String title) getURL()voidsetParent(NavigationNode parent) Sets the page's parent.voidsetShowLinkToPreviousSibling(boolean showLink) voidsetSiblings(String siblingsTitle, List siblingPages) Sets a list ofPages that are siblings of this page.voidwrite()
-
Constructor Details
-
Page
Creates a new page.- Parameters:
config- The configuration to usefileName- File name for the page, without file extensionshortTitle- A short navigation titlefullTitle- A full headline title
-
-
Method Details
-
setSiblings
Sets a list ofPages 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:
setSiblingsin interfaceNavigationNode- Parameters:
siblingsTitle- Title for navigation list, e.g. "Monthly Reports"sibling- A list ofPages
-
getURL
- Specified by:
getURLin interfaceNavigationNode
-
getShortTitle
- Specified by:
getShortTitlein interfaceNavigationNode
-
getFullTitle
- Specified by:
getFullTitlein interfaceNavigationNode
-
setShowLinkToPreviousSibling
public void setShowLinkToPreviousSibling(boolean showLink) - Specified by:
setShowLinkToPreviousSiblingin interfaceNavigationNode
-
addAttribute
-
addAttribute
-
addAttribute
-
addAttribute
-
addAttribute
-
addAttribute
-
addRawAttribute
-
addRawContent
-
addSection
-
addLink
-
add
-
add
-
add
-
add
-
add
-
write
public void write()- Specified by:
writein interfaceNavigationNode
-
asParentLink
- Specified by:
asParentLinkin interfaceNavigationNode