Class CmsHtmlReport

    • Field Detail

      • LINEBREAK

        public static final java.lang.String LINEBREAK
        Constant for a HTML linebreak with added "real" line break.
        See Also:
        Constant Field Values
      • LINEBREAK_TRADITIONAL

        public static final java.lang.String LINEBREAK_TRADITIONAL
        Constant for a HTML linebreak with added "real" line break- traditional style for report threads that still use XML templates for their output.
        See Also:
        Constant Field Values
    • Constructor Detail

      • CmsHtmlReport

        public CmsHtmlReport​(java.util.Locale locale,
                             java.lang.String siteRoot)
        Constructs a new report using the provided locale for the output language.

        Parameters:
        locale - the locale to use for the output language
        siteRoot - the site root of the user who started this report (may be null)
      • CmsHtmlReport

        public CmsHtmlReport​(java.util.Locale locale,
                             java.lang.String siteRoot,
                             boolean writeHtml,
                             boolean isTransient)
        Constructs a new report using the provided locale for the output language.

        Parameters:
        locale - the locale to use for the output language
        siteRoot - the site root of the user who started this report (may be null)
        writeHtml - if true, this report should generate HTML instead of JavaScript output
        isTransient - If set to true nothing is kept in memory
    • Method Detail

      • getReportUpdate

        public java.lang.String getReportUpdate()
        Description copied from interface: I_CmsReport
        Updates this report, this processes all new output added since the last call to this method.

        This is only required in case the output is written to a HTML page, if the shell output is used, this will just return an empty String.

        Returns:
        new elements that have been added to the report and not yet processed.
        See Also:
        I_CmsReport.getReportUpdate()
      • isWriteHtml

        public boolean isWriteHtml()
        Returns if the report writes html or javascript code.

        Returns:
        true if the report writes html, and false if the report writes javascript code
      • print

        public void print​(java.lang.String value,
                          int format)
        Description copied from class: A_CmsReport
        Prints a String to the report, using the indicated formatting.

        Use the constants starting with FORMAT from this interface to indicate which formatting to use.

        Specified by:
        print in class A_CmsReport
        Parameters:
        value - the message container to add
        format - the formatting to use for the output
        See Also:
        A_CmsReport.print(java.lang.String, int)
      • println

        public void println​(java.lang.Throwable t)
        Description copied from interface: I_CmsReport
        Adds an Exception to the report, ensuring that the Exception content is processed to generate a valid output esp. for HTML pages.

        The exception will be stored and the output will later be processed in a special way.

        Parameters:
        t - the exception to add
        See Also:
        I_CmsReport.println(java.lang.Throwable)
      • getLineBreak

        protected java.lang.String getLineBreak()
        Returns the correct line break notation depending on the output style of this report.
        Returns:
        the correct line break notation