Package org.xwiki.rendering.block
Class CompositeBlock
java.lang.Object
org.xwiki.rendering.block.AbstractBlock
org.xwiki.rendering.block.CompositeBlock
This block itself does not have any meaning (it does not have any corresponding rendering stream event) and is just
here to pass together several Blocks to a method or as a return value as a
Block.- Since:
- 4.3M1
- Version:
- $Id: 1978bea9e3d6d31d040160a20f42effdfbd7dc4b $
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.xwiki.rendering.block.Block
Block.Axes -
Field Summary
Fields inherited from interface org.xwiki.rendering.block.Block
LIST_BLOCK_TYPE -
Constructor Summary
ConstructorsConstructorDescriptionCreate an empty composite block with no children.CompositeBlock(List<Block> blocks) -
Method Summary
Methods inherited from class org.xwiki.rendering.block.AbstractBlock
addChild, addChildren, after, before, clone, clone, equals, get, getAttribute, getAttributes, getBlocks, getChildren, getFirstBlock, getNextSibling, getParameter, getParameters, getParent, getPreviousSibling, getRoot, getSyntaxMetadata, hashCode, indexOf, insertChildAfter, insertChildBefore, removeBlock, replaceChild, replaceChild, setAttribute, setAttributes, setChildren, setNextSiblingBlock, setParameter, setParameters, setParent, setPreviousSiblingBlock, traverse
-
Constructor Details
-
CompositeBlock
public CompositeBlock()Create an empty composite block with no children. This is useful when the user wants to callAbstractBlock.addChild(Block)manually for adding children one by one after the block is constructed. -
CompositeBlock
- Parameters:
blocks- the blocks
-
-
Method Details