public abstract class ReportPage extends Object implements ILinkable
| Modifier and Type | Field and Description |
|---|---|
protected IHTMLReportContext |
context
context for this report
|
protected ReportOutputFolder |
folder
output folder for this node
|
| Modifier | Constructor and Description |
|---|---|
protected |
ReportPage(ReportPage parent,
ReportOutputFolder folder,
IHTMLReportContext context)
Creates a new report page.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetLinkLabel, getLinkStyleprotected final ReportOutputFolder folder
protected final IHTMLReportContext context
protected ReportPage(ReportPage parent, ReportOutputFolder folder, IHTMLReportContext context)
parent - optional hierarchical parentfolder - base folder to create this report incontext - settings contextprotected final boolean isRootPage()
true if this is the root pagepublic void render()
throws IOException
IOException - if the page can't be writtenprotected void head(HTMLElement head) throws IOException
head - head tag of the pageIOException - in case of IO problems with the report writerprotected String getOnload()
nullprotected void infoLinks(HTMLElement span) throws IOException
span - parent elementIOException - 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 pageIOException - in case of IO problems with the report writerpublic final String getLink(ReportOutputFolder base)
ILinkableCopyright © 2024. All rights reserved.