|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Report
Sn interface to a generic report generating class, and to provide the polymorphism necessary to allow the report generator to generate any number of different formats of report Note: This used to be an abstract class, but has been made an interface as there wasn't any logic contained within it. It's also been made public, so that you can create a Report type without monkeying about in the statistics package.
| Method Summary | |
|---|---|
void |
addBlock(Statistics stat)
add a statistics block to the report to the class register |
String |
blockExplanation(String explanation)
output the explanation of the stat block in the relevant format |
String |
dateRange()
output the date range in the relevant format. |
String |
floorInfo(int floor)
output the floor information in the relevant format |
String |
footer()
output the final footers for this file |
String |
header()
output any top headers that this page needs |
String |
header(String title)
output any top headers that this page needs |
String |
mainTitle()
output the title in the relevant format. |
String |
render()
render the report |
String |
sectionHeader(String title)
output the section header in the relevant format |
void |
setEndDate(Date end)
set the end date for the report |
void |
setMainTitle(String name,
String serverName)
set the main title for the report |
void |
setStartDate(Date start)
set the starting date for the report |
String |
statBlock(Statistics content)
output the report block based on the passed statistics object array |
| Method Detail |
|---|
String header()
String header(String title)
title - the title of the report, useful for email subjects or
HTML headers
String mainTitle()
String dateRange()
String sectionHeader(String title)
title - the title of the current section header
String statBlock(Statistics content)
content - a statistics object to form the basis of the displayed
stat block
String floorInfo(int floor)
floor - the floor value for the statistics block
String blockExplanation(String explanation)
explanation - the explanatory or clarification text for the stats
String footer()
void setMainTitle(String name,
String serverName)
name - the name of the serviceserverName - the name of the servervoid addBlock(Statistics stat)
stat - the statistics object to be added to the reportString render()
void setStartDate(Date start)
start - the start date for the reportvoid setEndDate(Date end)
end - the end date for the report
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||