public class FormatBlock extends AbstractBlock
Block.Axes| Constructor and Description |
|---|
FormatBlock(List<Block> childrenBlocks,
Format format) |
FormatBlock(List<Block> childrenBlocks,
Format format,
Map<String,String> parameters) |
| 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. |
boolean |
equals(Object obj) |
Format |
getFormat() |
int |
hashCode() |
addChild, addChildren, clone, clone, getBlocks, getChildren, getFirstBlock, getNextSibling, getParameter, getParameters, getParent, getPreviousSibling, getRoot, insertChildAfter, insertChildBefore, removeBlock, replaceChild, replaceChild, setChildren, setNextSiblingBlock, setParameter, setParameters, setParent, setPreviousSiblingBlock, traversepublic FormatBlock(List<Block> childrenBlocks, Format format)
childrenBlocks - the nested children blocksformat - the formatting to apply to the children blockspublic Format getFormat()
public 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.public boolean equals(Object obj)
equals in class AbstractBlockpublic int hashCode()
hashCode in class AbstractBlockCopyright © 2004–2018 XWiki. All rights reserved.