|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dspace.app.statistics.HTMLReport
public class HTMLReport
This class provides HTML reports for the ReportGenerator class
| Constructor Summary | |
|---|---|
HTMLReport()
constructor for HTML reporting |
|
| 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 report block in HTML format |
String |
dateRange()
output the date range in the relevant format. |
String |
floorInfo(int floor)
output the floor information in HTML 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, and include a title argument (Title support currently not implemented) |
String |
mainTitle()
output the title in the relevant format. |
String |
navigation()
build the internal navigation for the report |
String |
render()
return a string containing the report as generated by this class |
String |
sectionHeader(String title)
output the section header in HTML 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 |
setOutput(String newOutput)
|
void |
setStartDate(Date start)
set the starting date for the report |
String |
statBlock(Statistics content)
output the report block based on the passed mapping, where the mapping sould be "name of report element" => "value", where both sides of the mapping should be Strings. |
String |
topLink()
provide a link back to the top of the page |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HTMLReport()
| Method Detail |
|---|
public void setOutput(String newOutput)
public String render()
render in interface Reportpublic String topLink()
public String navigation()
public void addBlock(Statistics stat)
addBlock in interface Reportstat - the statistics object to be added to the reportpublic void setStartDate(Date start)
setStartDate in interface Reportstart - the start date for the reportpublic void setEndDate(Date end)
setEndDate in interface Reportend - the end date for the reportpublic String dateRange()
dateRange in interface Reportpublic String mainTitle()
mainTitle in interface Report
public void setMainTitle(String name,
String serverName)
setMainTitle in interface Reportname - the name of the serviceserverName - the name of the serverpublic String header()
header in interface Reportpublic String header(String title)
header in interface Reporttitle - the title of the item being headered
public String sectionHeader(String title)
sectionHeader in interface Reporttitle - the title of the section
public String statBlock(Statistics content)
statBlock in interface Reportcontent - the statistic object array to be displayed
public String floorInfo(int floor)
floorInfo in interface Reportfloor - the floor number for the section being displayed
public String blockExplanation(String explanation)
blockExplanation in interface Reportexplanation - some text explaining the coming report block
public String footer()
footer in interface Report
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||