public class TableBlockRenderer extends Object implements BlockRenderer
This class parses the wiki table markup into a table model (see Table).
To customize the rendering of the table, you can override renderTable(Table, com.atlassian.renderer.v2.SubRenderer, com.atlassian.renderer.RenderContext).
| Constructor and Description |
|---|
TableBlockRenderer() |
| Modifier and Type | Method and Description |
|---|---|
String |
renderNextBlock(String thisLine,
LineWalker nextLines,
RenderContext context,
SubRenderer subRenderer)
Render the next block in a document.
|
protected String |
renderTable(Table table,
SubRenderer subRenderer,
RenderContext renderContext)
Encapsulates the logic for rendering the table model
Table. |
public String renderNextBlock(String thisLine, LineWalker nextLines, RenderContext context, SubRenderer subRenderer)
BlockRendererReturning anything from this method will indicate this renderer could handle the given line, and no further processing should be performed on it. Return null to let the other block renderers have a go on the same line.
renderNextBlock in interface BlockRendererthisLine - the line that will form the start of the blocknextLines - a LineWalker positioned at the line in the document after thisLine, in case
the renderer needs to consume multiple lines. If the walker is used, implementors should
ensure that at the end of the renderNextBlock call, it is positioned at the start of the
first line that does not form part of the block.context - The current rendercontextsubRenderer - A subrenderer that can be used to render the contents of the blockprotected String renderTable(Table table, SubRenderer subRenderer, RenderContext renderContext)
Table.
Clients can override this method to customize table rendering.
table - the table modelsubRenderer - sub rendererrenderContext - render contextCopyright © 2015 Atlassian. All rights reserved.