Class PackageSourcePage

All Implemented Interfaces:
ILinkable, ITableItem

public class PackageSourcePage extends TablePage<IPackageCoverage>
Page showing coverage information for a Java package. The page contains a table with all classes of the package.
  • Field Details

  • Constructor Details

    • PackageSourcePage

      public PackageSourcePage(IPackageCoverage node, ReportPage parent, ISourceFileLocator locator, ReportOutputFolder folder, IHTMLReportContext context, ILinkable packagePage)
      Creates a new visitor in the given context.
      Parameters:
      node - coverage data for this package
      parent - optional hierarchical parent
      locator - source locator
      folder - base folder to create this page in
      context - settings context
      packagePage - page listing the classes of this package
  • Method Details

    • render

      public void render() throws IOException
      Description copied from class: ReportPage
      Renders this page's content and optionally additional pages. This method must be called at most once.
      Overrides:
      render in class ReportPage
      Throws:
      IOException - if the page can't be written
    • getSourceFilePage

      ILinkable getSourceFilePage(String name)
      Returns the link to the source file page of the source file with the given name. If no source file was located, null is returned..
    • renderSourceFilePages

      private final void renderSourceFilePages() throws IOException
      Throws:
      IOException
    • getOnload

      protected String getOnload()
      Description copied from class: ReportPage
      Returns the onload handler for this page.
      Overrides:
      getOnload in class ReportPage
      Returns:
      handler or null
    • getFileName

      protected String getFileName()
      Description copied from class: ReportPage
      Specifies the local file name of this page.
      Specified by:
      getFileName in class ReportPage
      Returns:
      local file name
    • getLinkLabel

      public String getLinkLabel()
      Description copied from interface: ILinkable
      Returns the display label used for the link.
      Specified by:
      getLinkLabel in interface ILinkable
      Overrides:
      getLinkLabel in class NodePage<IPackageCoverage>
      Returns:
      display label
    • infoLinks

      protected void infoLinks(HTMLElement span) throws IOException
      Description copied from class: ReportPage
      Inserts additional links on the top right corner.
      Overrides:
      infoLinks in class ReportPage
      Parameters:
      span - parent element
      Throws:
      IOException - in case of IO problems with the report writer