Class AbstractChainingPrintRenderer

    • Constructor Detail

      • AbstractChainingPrintRenderer

        public AbstractChainingPrintRenderer()
    • Method Detail

      • getMainPrinter

        public WikiPrinter getMainPrinter()
        Returns:
        the main printer.
      • getPrinter

        public WikiPrinter getPrinter()
        Specified by:
        getPrinter in interface PrintRenderer
        Returns:
        the printer to which events generate results in. For example the XHTML print renderer outputs XHTML to a WikiPrinter and the resulting XHTML can be retrieved by calling toString() on it
      • setPrinter

        public void setPrinter​(WikiPrinter printer)
        Specified by:
        setPrinter in interface PrintRenderer
        Parameters:
        printer - the wiki printer to use when the Renderer needs to output rendered content
        Since:
        2.0M3
      • pushPrinter

        protected void pushPrinter​(WikiPrinter wikiPrinter)
        Change the current WikiPrinter with the provided one.
        Parameters:
        wikiPrinter - the new WikiPrinter to use
      • popPrinter

        protected void popPrinter()
        Removes the current WikiPrinter and instead sets the previous printer as active.