org.xwiki.rendering.block
Class CompositeBlock

java.lang.Object
  extended by org.xwiki.rendering.block.AbstractBlock
      extended by org.xwiki.rendering.block.CompositeBlock
All Implemented Interfaces:
Cloneable, Block

public class CompositeBlock
extends AbstractBlock

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: 4f2f0f30199b205301a3e94dcba4a5c1db723b5d $

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.xwiki.rendering.block.Block
Block.Axes
 
Constructor Summary
CompositeBlock()
          Create 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, getBlocks, getChildren, getFirstBlock, getNextSibling, getParameter, getParameters, getParent, getPreviousSibling, getRoot, hashCode, insertChildAfter, insertChildBefore, removeBlock, replaceChild, replaceChild, setChildren, setNextSiblingBlock, setParameter, setParameters, setParent, setPreviousSiblingBlock, traverse
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompositeBlock

public CompositeBlock()
Create an empty composite block with no children. This is useful when the user wants to call AbstractBlock.addChild(Block) manually for adding children one by one after the block is constructed.


CompositeBlock

public CompositeBlock(List<Block> blocks)
Parameters:
blocks - the blocks


Copyright © 2004-2012 XWiki. All Rights Reserved.