public class GroupBlock extends AbstractBlock
Block.Axes
LIST_BLOCK_TYPE
Constructor and Description |
---|
GroupBlock()
Create an empty group block with no children.
|
GroupBlock(List<Block> blocks) |
GroupBlock(List<Block> blocks,
Map<String,String> parameters) |
GroupBlock(Map<String,String> parameters)
Create an empty group block with no children.
|
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. |
addChild, addChildren, clone, clone, equals, getBlocks, getChildren, getFirstBlock, getNextSibling, getParameter, getParameters, getParent, getPreviousSibling, getRoot, hashCode, indexOf, insertChildAfter, insertChildBefore, removeBlock, replaceChild, replaceChild, setChildren, setNextSiblingBlock, setParameter, setParameters, setParent, setPreviousSiblingBlock, traverse
public GroupBlock()
AbstractBlock.addChild(Block)
manually for adding children one by one after the block is constructed.public GroupBlock(Map<String,String> parameters)
AbstractBlock.addChild(Block)
manually for adding children one by one after the block is constructed.parameters
- the parameters of the grouppublic GroupBlock(List<Block> blocks)
blocks
- the children blocks of the grouppublic void before(Listener listener)
AbstractBlock
Listener
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 AbstractBlock
listener
- 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)
AbstractBlock
Listener
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 AbstractBlock
listener
- the listener that will receive the events sent by this block before its children blocks have
emitted their own events.Copyright © 2004–2021 XWiki. All rights reserved.