|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.renderer.v2.components.block.HeadingBlockRenderer
public class HeadingBlockRenderer
| Constructor Summary | |
|---|---|
HeadingBlockRenderer()
|
|
| Method Summary | |
|---|---|
protected java.lang.String |
getAnchor(RenderContext context,
java.lang.String body)
Default implementation that gets a simple anchor text. |
protected java.lang.String |
renderHeading(java.lang.String headingLevel,
java.lang.String body,
RenderContext context,
SubRenderer subRenderer)
Render a heading using the default HTML format |
protected java.lang.String |
renderHeading(java.lang.String headingLevel,
java.lang.String body,
RenderContext context,
SubRenderer subRenderer,
java.lang.String renderFormat)
Render a heading using a provided message format. |
java.lang.String |
renderNextBlock(java.lang.String thisLine,
LineWalker nextLines,
RenderContext context,
SubRenderer subRenderer)
Render the next block in a document. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HeadingBlockRenderer()
| Method Detail |
|---|
public java.lang.String renderNextBlock(java.lang.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 block
protected java.lang.String renderHeading(java.lang.String headingLevel,
java.lang.String body,
RenderContext context,
SubRenderer subRenderer)
protected java.lang.String renderHeading(java.lang.String headingLevel,
java.lang.String body,
RenderContext context,
SubRenderer subRenderer,
java.lang.String renderFormat)
headingLevel - heading levelbody - heading bodycontext - context heading is being rendered insubRenderer - subrenderer for further rendering of contentrenderFormat - MessageFormat string to use for rendering.
protected java.lang.String getAnchor(RenderContext context,
java.lang.String body)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||