Class SessionsPage
- java.lang.Object
-
- org.jacoco.report.internal.html.page.ReportPage
-
- org.jacoco.report.internal.html.page.SessionsPage
-
- All Implemented Interfaces:
ILinkable
public class SessionsPage extends ReportPage
Page to display information about sessions covered by this report.
-
-
Field Summary
Fields Modifier and Type Field Description private java.text.DateFormat
dateFormat
private java.util.List<ExecutionData>
executionData
private ElementIndex
index
private static java.lang.String
MSG_EXECDATA
private static java.lang.String
MSG_NO_EXECDATA
private static java.lang.String
MSG_NO_SESSIONS
private static java.lang.String
MSG_SESSIONS
private java.util.List<SessionInfo>
sessionInfos
-
Fields inherited from class org.jacoco.report.internal.html.page.ReportPage
context, folder
-
-
Constructor Summary
Constructors Constructor Description SessionsPage(java.util.List<SessionInfo> sessionInfos, java.util.Collection<ExecutionData> executionData, ElementIndex index, ReportPage parent, ReportOutputFolder folder, IHTMLReportContext context)
Creates a new page page to display session information.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
content(HTMLElement body)
Creates the actual content of the page.private void
executionDataTable(HTMLElement body)
protected java.lang.String
getFileName()
Specifies the local file name of this page.java.lang.String
getLinkLabel()
Returns the display label used for the link.java.lang.String
getLinkStyle()
Optional style class to be associated with the link.private void
sessionTable(HTMLElement body)
-
Methods inherited from class org.jacoco.report.internal.html.page.ReportPage
getLink, getOnload, head, infoLinks, isRootPage, render
-
-
-
-
Field Detail
-
MSG_SESSIONS
private static final java.lang.String MSG_SESSIONS
- See Also:
- Constant Field Values
-
MSG_NO_SESSIONS
private static final java.lang.String MSG_NO_SESSIONS
- See Also:
- Constant Field Values
-
MSG_EXECDATA
private static final java.lang.String MSG_EXECDATA
- See Also:
- Constant Field Values
-
MSG_NO_EXECDATA
private static final java.lang.String MSG_NO_EXECDATA
- See Also:
- Constant Field Values
-
sessionInfos
private final java.util.List<SessionInfo> sessionInfos
-
dateFormat
private final java.text.DateFormat dateFormat
-
executionData
private final java.util.List<ExecutionData> executionData
-
index
private final ElementIndex index
-
-
Constructor Detail
-
SessionsPage
public SessionsPage(java.util.List<SessionInfo> sessionInfos, java.util.Collection<ExecutionData> executionData, ElementIndex index, ReportPage parent, ReportOutputFolder folder, IHTMLReportContext context)
Creates a new page page to display session information.- Parameters:
sessionInfos
- session info objectsexecutionData
- execution data objectsindex
- index for cross-linkingparent
- optional hierarchical parentfolder
- base folder to create this page incontext
- settings context
-
-
Method Detail
-
content
protected void content(HTMLElement body) throws java.io.IOException
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:
java.io.IOException
- in case of IO problems with the report writer
-
sessionTable
private void sessionTable(HTMLElement body) throws java.io.IOException
- Throws:
java.io.IOException
-
executionDataTable
private void executionDataTable(HTMLElement body) throws java.io.IOException
- Throws:
java.io.IOException
-
getFileName
protected java.lang.String getFileName()
Description copied from class:ReportPage
Specifies the local file name of this page.- Specified by:
getFileName
in classReportPage
- Returns:
- local file name
-
getLinkStyle
public java.lang.String getLinkStyle()
Description copied from interface:ILinkable
Optional style class to be associated with the link.- Returns:
- link style class or
null
-
getLinkLabel
public java.lang.String getLinkLabel()
Description copied from interface:ILinkable
Returns the display label used for the link.- Returns:
- display label
-
-