Class TablePage<NodeType extends ICoverageNode>
java.lang.Object
org.jacoco.report.internal.html.page.ReportPage
org.jacoco.report.internal.html.page.NodePage<NodeType>
org.jacoco.report.internal.html.page.TablePage<NodeType>
- Type Parameters:
NodeType
- type of the node represented by this page
- All Implemented Interfaces:
ILinkable
,ITableItem
- Direct Known Subclasses:
BundlePage
,ClassPage
,GroupPage
,PackagePage
,PackageSourcePage
Report page that contains a table of items linked to other pages.
-
Field Summary
FieldsFields inherited from class org.jacoco.report.internal.html.page.ReportPage
context, folder
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
TablePage
(NodeType node, ReportPage parent, ReportOutputFolder folder, IHTMLReportContext context) Creates a new node page. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addItem
(ITableItem item) Adds the given item to the table.protected void
content
(HTMLElement body) Creates the actual content of the page.protected void
head
(HTMLElement head) Creates the elements within the head element.Methods inherited from class org.jacoco.report.internal.html.page.NodePage
getLinkLabel, getLinkStyle, getNode
Methods inherited from class org.jacoco.report.internal.html.page.ReportPage
getFileName, getLink, getOnload, infoLinks, isRootPage, render
-
Field Details
-
items
-
-
Constructor Details
-
TablePage
protected TablePage(NodeType node, ReportPage parent, ReportOutputFolder folder, IHTMLReportContext context) Creates a new node page.- Parameters:
node
- corresponding nodeparent
- optional hierarchical parentfolder
- base folder to create this report incontext
- settings context
-
-
Method Details
-
addItem
Adds the given item to the table. Method must be called before the page is rendered.- Parameters:
item
- table item to add
-
head
Description copied from class:ReportPage
Creates the elements within the head element.- Overrides:
head
in classReportPage
- Parameters:
head
- head tag of the page- Throws:
IOException
- in case of IO problems with the report writer
-
content
Description copied from class:ReportPage
Creates the actual content of the page.- Specified by:
content
in classReportPage
- Parameters:
body
- body tag of the page- Throws:
IOException
- in case of IO problems with the report writer
-