public abstract class AbstractAnnotationRenderer extends org.xwiki.rendering.renderer.AbstractChainingPrintRenderer implements org.xwiki.component.phase.Initializable, AnnotationPrintRenderer
Modifier and Type | Field and Description |
---|---|
protected org.xwiki.annotation.internal.renderer.AnnotationGeneratorChainingListener |
annotationsGenerator
The annotations generator listener to use in this renderer.
|
protected org.xwiki.rendering.parser.StreamParser |
plainTextParser
Plain text parser used to parse generated link labels.
|
protected ContentAlterer |
selectionAlterer
Selection cleaner so that the selection can be mapped on the content.
|
protected TextExtractor |
textExtractor |
Constructor and Description |
---|
AbstractAnnotationRenderer() |
Modifier and Type | Method and Description |
---|---|
abstract ChainingPrintRenderer |
getAnnotationPrintRenderer(org.xwiki.rendering.listener.chaining.ListenerChain chain) |
abstract org.xwiki.rendering.renderer.reference.link.LinkLabelGenerator |
getLinkLabelGenerator()
Getter for the link label generator to be used for generating link labels in this mapping and rendering process
for links that don't have labels.
|
void |
initialize() |
void |
setAnnotations(Collection<Annotation> annotations)
Sets the annotations to render on the content.
|
getMainPrinter, getPrinter, popPrinter, pushPrinter, setPrinter
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, onMacro, onNewLine, onRawText, onSpace, onSpecialSymbol, onVerbatim, onWord, setListenerChain
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
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
@Inject @Named(value="whitespace") protected ContentAlterer selectionAlterer
@Inject @Named(value="plain/1.0") protected org.xwiki.rendering.parser.StreamParser plainTextParser
@Inject protected TextExtractor textExtractor
protected org.xwiki.annotation.internal.renderer.AnnotationGeneratorChainingListener annotationsGenerator
public void initialize() throws org.xwiki.component.phase.InitializationException
initialize
in interface org.xwiki.component.phase.Initializable
org.xwiki.component.phase.InitializationException
public abstract ChainingPrintRenderer getAnnotationPrintRenderer(org.xwiki.rendering.listener.chaining.ListenerChain chain)
chain
- the chain in which the renderer needs to be added.public abstract org.xwiki.rendering.renderer.reference.link.LinkLabelGenerator getLinkLabelGenerator()
LinkLabelGenerator
used to generate labels for links without labels by this rendererpublic void setAnnotations(Collection<Annotation> annotations)
AnnotationPrintRenderer
setAnnotations
in interface AnnotationPrintRenderer
annotations
- the collection of annotations to renderCopyright © 2004–2022 XWiki. All rights reserved.