Package org.xwiki.rendering.renderer
Class AbstractChainingPrintRenderer
- java.lang.Object
-
- org.xwiki.rendering.listener.chaining.AbstractChainingListener
-
- org.xwiki.rendering.renderer.AbstractChainingPrintRenderer
-
- All Implemented Interfaces:
ChainingListener
,ImageListener
,LinkListener
,Listener
,PrintRenderer
,Renderer
public abstract class AbstractChainingPrintRenderer extends AbstractChainingListener implements PrintRenderer
- Since:
- 1.8RC1
- Version:
- $Id: 93cde196e285213ec5d9e15d0478005adf47e2a6 $
-
-
Field Summary
-
Fields inherited from interface org.xwiki.rendering.listener.Listener
EMPTY_PARAMETERS
-
-
Constructor Summary
Constructors Constructor Description AbstractChainingPrintRenderer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WikiPrinter
getMainPrinter()
WikiPrinter
getPrinter()
protected void
popPrinter()
Removes the currentWikiPrinter
and instead sets the previous printer as active.protected void
pushPrinter(WikiPrinter wikiPrinter)
Change the currentWikiPrinter
with the provided one.void
setPrinter(WikiPrinter printer)
-
Methods inherited from class org.xwiki.rendering.listener.chaining.AbstractChainingListener
beginDefinitionDescription, beginDefinitionList, beginDefinitionTerm, beginDocument, beginFigure, beginFigureCaption, beginFormat, beginGroup, beginHeader, beginLink, beginList, beginListItem, beginListItem, beginMacroMarker, beginMetaData, beginParagraph, beginQuotation, beginQuotationLine, beginSection, beginTable, beginTableCell, beginTableHeadCell, beginTableRow, endDefinitionDescription, endDefinitionList, endDefinitionTerm, endDocument, endFigure, endFigureCaption, endFormat, endGroup, endHeader, endLink, endList, endListItem, endListItem, endMacroMarker, endMetaData, endParagraph, endQuotation, endQuotationLine, endSection, endTable, endTableCell, endTableHeadCell, endTableRow, getListenerChain, onEmptyLines, onHorizontalLine, onId, onImage, onImage, onMacro, onNewLine, onRawText, onSpace, onSpecialSymbol, onVerbatim, onWord, setListenerChain
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.xwiki.rendering.listener.ImageListener
onImage, onImage
-
Methods inherited from interface org.xwiki.rendering.listener.LinkListener
beginLink, endLink
-
Methods inherited from interface org.xwiki.rendering.listener.Listener
beginDefinitionDescription, beginDefinitionList, beginDefinitionTerm, beginDocument, beginFigure, beginFigureCaption, beginFormat, beginGroup, beginHeader, beginList, beginListItem, beginListItem, beginMacroMarker, beginMetaData, beginParagraph, beginQuotation, beginQuotationLine, beginSection, beginTable, beginTableCell, beginTableHeadCell, beginTableRow, endDefinitionDescription, endDefinitionList, endDefinitionTerm, endDocument, endFigure, endFigureCaption, endFormat, endGroup, endHeader, endList, endListItem, endListItem, endMacroMarker, endMetaData, endParagraph, endQuotation, endQuotationLine, endSection, endTable, endTableCell, endTableHeadCell, endTableRow, onEmptyLines, onHorizontalLine, onId, onMacro, onNewLine, onRawText, onSpace, onSpecialSymbol, onVerbatim, onWord
-
-
-
-
Method Detail
-
getMainPrinter
public WikiPrinter getMainPrinter()
- Returns:
- the main printer.
-
getPrinter
public WikiPrinter getPrinter()
- Specified by:
getPrinter
in interfacePrintRenderer
- 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 callingtoString()
on it
-
setPrinter
public void setPrinter(WikiPrinter printer)
- Specified by:
setPrinter
in interfacePrintRenderer
- 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 currentWikiPrinter
with the provided one.- Parameters:
wikiPrinter
- the newWikiPrinter
to use
-
popPrinter
protected void popPrinter()
Removes the currentWikiPrinter
and instead sets the previous printer as active.
-
-