|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jacoco.report.html.ReportPage
public abstract class ReportPage
Base class for HTML page generators. It renders the page skeleton with the breadcrumb, the title and the footer. Every report page is part of a hierarchy and has a parent page (except the root page).
Field Summary | |
---|---|
protected IHTMLReportContext |
context
context for this report |
protected ReportOutputFolder |
folder
output folder for this node |
Constructor Summary | |
---|---|
protected |
ReportPage(ReportPage parent,
ReportOutputFolder folder,
IHTMLReportContext context)
Creates a new report page. |
Method Summary | |
---|---|
protected abstract void |
content(HTMLElement body)
Creates the actual content of the page. |
protected abstract String |
getFileName()
Specifies the local file name of this page. |
String |
getLink(ReportOutputFolder base)
Returns a relative link to the item that works from the given base folder. |
protected String |
getOnload()
Returns the onload handler for this page. |
protected void |
headExtra(HTMLElement head)
Hook to add extra content into the head tag. |
void |
renderDocument()
Renders the page content. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.jacoco.report.html.ILinkable |
---|
getLinkLabel, getLinkStyle |
Field Detail |
---|
protected final ReportOutputFolder folder
protected final IHTMLReportContext context
Constructor Detail |
---|
protected ReportPage(ReportPage parent, ReportOutputFolder folder, IHTMLReportContext context)
parent
- optional hierarchical parentfolder
- base folder to create this report incontext
- settings contextMethod Detail |
---|
public final void renderDocument() throws IOException
IOException
protected void headExtra(HTMLElement head) throws IOException
head
- enclosing head element
IOException
- in case of IO problems with the report writerprotected String getOnload()
null
protected abstract String getFileName()
protected abstract void content(HTMLElement body) throws IOException
body
- body tag of the page
IOException
- in case of IO problems with the report writerpublic final String getLink(ReportOutputFolder base)
ILinkable
getLink
in interface ILinkable
base
- folder where the link should be inserted
null
if the target does not exist
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |