public class MacroMarkerBlock extends AbstractMacroBlock
Block.AxesLIST_BLOCK_TYPE| Constructor and Description |
|---|
MacroMarkerBlock(String id,
Map<String,String> parameters,
List<Block> childBlocks,
boolean isInline) |
MacroMarkerBlock(String id,
Map<String,String> parameters,
String content,
List<Block> childBlocks,
boolean inline) |
| Modifier and Type | Method and Description |
|---|---|
void |
after(Listener listener)
Send
Listener events corresponding to the end of the block. |
void |
before(Listener listener)
Send
Listener events corresponding to the start of the block. |
String |
getName()
Deprecated.
since 2.4M1 use
AbstractMacroBlock.getId() instead |
equals, getContent, getId, hashCode, isInlineaddChild, addChildren, clone, clone, getBlocks, getChildren, getFirstBlock, getNextSibling, getParameter, getParameters, getParent, getPreviousSibling, getRoot, indexOf, insertChildAfter, insertChildBefore, removeBlock, replaceChild, replaceChild, setChildren, setNextSiblingBlock, setParameter, setParameters, setParent, setPreviousSiblingBlock, traversepublic MacroMarkerBlock(String id, Map<String,String> parameters, List<Block> childBlocks, boolean isInline)
id - the name of the macroparameters - the parameters of the macrochildBlocks - the list of children blocks generated by the macroisInline - indicate if the macro is located in a inline content (like paragraph, etc.)public MacroMarkerBlock(String id, Map<String,String> parameters, String content, List<Block> childBlocks, boolean inline)
id - the name of the macroparameters - the parameters of the macrocontent - the content of the macro. Null if the macro does not have contentchildBlocks - the list of children blocks generated by the macroinline - indicate if the macro is located in a inline content (like paragraph, etc.)@Deprecated public String getName()
AbstractMacroBlock.getId() insteadpublic void before(Listener listener)
AbstractBlockListener events corresponding to the start of the block. For example
for a Bold block, this allows an XHTML Listener (aka a Renderer) to output <b>.before in class AbstractBlocklistener - the listener that will receive the events sent by this block before its children blocks have
emitted their own events.public void after(Listener listener)
AbstractBlockListener events corresponding to the end of the block. For example for a Bold block, this allows an
XHTML Listener (aka a Renderer) to output </b>.after in class AbstractBlocklistener - the listener that will receive the events sent by this block before its children blocks have
emitted their own events.Copyright © 2004–2020 XWiki. All rights reserved.