public class ExpandedMacroBlock
extends org.xwiki.rendering.block.MacroBlock
MacroBlock
whose content is expanded. The macro content can be accessed and modified through the child
blocks. This type of macro block is suited only for macros whose content can be parsed into a list of block nodes.Constructor and Description |
---|
ExpandedMacroBlock(String id,
Map<String,String> parameters,
org.xwiki.rendering.renderer.BlockRenderer contentRenderer,
boolean inline)
Creates a new expanded macro block.
|
ExpandedMacroBlock(String id,
Map<String,String> parameters,
org.xwiki.rendering.renderer.BlockRenderer contentRenderer,
boolean inline,
org.xwiki.component.manager.ComponentManager componentManager)
Creates a new expanded macro block.
|
Modifier and Type | Method and Description |
---|---|
String |
getContent() |
equals, getId, hashCode, isInline, traverse
addChild, addChildren, after, before, clone, clone, getBlocks, getChildren, getFirstBlock, getNextSibling, getParameter, getParameters, getParent, getPreviousSibling, getRoot, insertChildAfter, insertChildBefore, removeBlock, replaceChild, replaceChild, setChildren, setNextSiblingBlock, setParameter, setParameters, setParent, setPreviousSiblingBlock
public ExpandedMacroBlock(String id, Map<String,String> parameters, org.xwiki.rendering.renderer.BlockRenderer contentRenderer, boolean inline)
id
- the id of the macroparameters
- the parameters of the macrocontentRenderer
- the component used to reconstruct the macro content from the child blocksinline
- indicates if the macro is located in an in-line content (e.g. inside a paragraph)public ExpandedMacroBlock(String id, Map<String,String> parameters, org.xwiki.rendering.renderer.BlockRenderer contentRenderer, boolean inline, org.xwiki.component.manager.ComponentManager componentManager)
id
- the id of the macroparameters
- the parameters of the macrocontentRenderer
- the component used to reconstruct the macro content from the child blocksinline
- indicates if the macro is located in an in-line content (e.g. inside a paragraph)componentManager
- allows the expanded macro block to use a different syntax for its content if one of its
ancestor meta data blocks specify the syntaxpublic String getContent()
getContent
in class org.xwiki.rendering.block.MacroBlock
Copyright © 2004–2017 XWiki. All rights reserved.