|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--sos.reports.AbstractReportTemplate
A partial implementation of the ReportTemplate interface.
Subclasses must implement:
Subclasses that provide one or more themes should also implement:
| Constructor Summary | |
protected |
AbstractReportTemplate()
Creates an instance of AbstractReportTemplate. |
| Method Summary | |
Report |
createReport(java.lang.Object content)
Creates a report with the specified content and with the default theme. |
Theme |
getDefaultTheme()
Returns the default report theme compatible with reports generated by this template. |
java.util.Set |
getThemes()
Returns a set of themes compatible with this template's reports. |
java.lang.String |
toString()
Returns a string representation of this theme. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface sos.reports.ReportTemplate |
createReport, getName |
| Constructor Detail |
protected AbstractReportTemplate()
AbstractReportTemplate.
| Method Detail |
public Report createReport(java.lang.Object content)
throws java.lang.IllegalArgumentException
ReportTemplate
createReport in interface ReportTemplatecontent - content of the report to be generated
null report with the specified content
java.lang.IllegalArgumentException - if content is not appropriate
(wrong class, e.g.) for the reports generated by this templateReportTemplate.createReport(Object,Theme)public Theme getDefaultTheme()
ReportTemplate
getDefaultTheme in interface ReportTemplatenull)public java.util.Set getThemes()
ReportTemplate
getThemes in interface ReportTemplatepublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||