|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jacoco.report.internal.html.page.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 |
head(HTMLElement head)
Creates the elements within the head element. |
protected void |
infoLinks(HTMLElement span)
Inserts additional links on the top right corner. |
protected boolean |
isRootPage()
Checks whether this is the root page of the report. |
void |
render()
Renders this page's content and optionally additional pages. |
| 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.internal.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 context| Method Detail |
|---|
protected final boolean isRootPage()
true if this is the root page
public void render()
throws IOException
IOException - if the page can't be written
protected void head(HTMLElement head)
throws IOException
head - head tag of the page
IOException - in case of IO problems with the report writerprotected String getOnload()
null
protected void infoLinks(HTMLElement span)
throws IOException
span - parent element
IOException - in case of IO problems with the report writerprotected 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 ILinkablebase - 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 | |||||||||