org.xwiki.rendering.internal.renderer
Class AbstractBlockRenderer
java.lang.Object
org.xwiki.rendering.internal.renderer.AbstractBlockRenderer
- All Implemented Interfaces:
- BlockRenderer
- Direct Known Subclasses:
- EventBlockRenderer, PlainTextBlockRenderer
public abstract class AbstractBlockRenderer
- extends Object
- implements BlockRenderer
Common code for BlockRender implementation that uses Print Renderer Factory.
- Since:
- 2.0M3
- Version:
- $Id$
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractBlockRenderer
public AbstractBlockRenderer()
getPrintRendererFactory
protected abstract PrintRendererFactory getPrintRendererFactory()
- Returns:
- provide the factory to use to create a new
PrintRenderer.
render
public void render(Block block,
WikiPrinter printer)
-
- Specified by:
render in interface BlockRenderer
- Parameters:
block - the block to render in the target syntaxprinter - the object where to output the result of the rendering- See Also:
BlockRenderer.render(org.xwiki.rendering.block.Block, org.xwiki.rendering.renderer.printer.WikiPrinter)
render
public void render(Collection<Block> blocks,
WikiPrinter printer)
-
- Specified by:
render in interface BlockRenderer
- Parameters:
blocks - the list of blocks to render in the target syntaxprinter - the object where to output the result of the rendering- See Also:
BlockRenderer.render(java.util.Collection, org.xwiki.rendering.renderer.printer.WikiPrinter)
Copyright © 2004-2011 XWiki. All Rights Reserved.