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 TypeMethodDescriptionvoid
add
(ChartImage chart) void
add
(ChartImage chart, String linkURL) void
void
void
add
(TableReport table) void
addAttribute
(String key, double value, int decimalPlaces) void
addAttribute
(String key, double value, int decimalPlaces, String unit) void
addAttribute
(String key, int value) void
addAttribute
(String key, int value, String unit) void
addAttribute
(String key, String value) void
addAttribute
(String key, Date value) void
addChild
(NavigationNode child) void
void
addRawAttribute
(String key, String rawValue) void
void
addSection
(String title) getURL()
void
setParent
(NavigationNode parent) Sets the page's parent.void
setShowLinkToPreviousSibling
(boolean showLink) void
setSiblings
(String siblingsTitle, List siblingPages) Sets a list ofPage
s that are siblings of this page.void
write()
-
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 ofPage
s 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 interfaceNavigationNode
- Parameters:
siblingsTitle
- Title for navigation list, e.g. "Monthly Reports"sibling
- A list ofPage
s
-
getURL
- Specified by:
getURL
in interfaceNavigationNode
-
getShortTitle
- Specified by:
getShortTitle
in interfaceNavigationNode
-
getFullTitle
- Specified by:
getFullTitle
in interfaceNavigationNode
-
setShowLinkToPreviousSibling
public void setShowLinkToPreviousSibling(boolean showLink) - Specified by:
setShowLinkToPreviousSibling
in interfaceNavigationNode
-
addAttribute
-
addAttribute
-
addAttribute
-
addAttribute
-
addAttribute
-
addAttribute
-
addRawAttribute
-
addRawContent
-
addSection
-
addLink
-
add
-
add
-
add
-
add
-
add
-
write
public void write()- Specified by:
write
in interfaceNavigationNode
-
asParentLink
- Specified by:
asParentLink
in interfaceNavigationNode