Package org.xwiki.rendering.block
Class FormatBlock
java.lang.Object
org.xwiki.rendering.block.AbstractBlock
org.xwiki.rendering.block.FormatBlock
Represents a text formatting block (bold, italic, etc).
- Since:
- 1.6M1
- Version:
- $Id: 55047ee4c63f71a4377affa51898a8eb26daa711 $
-
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 format block with no children.FormatBlock(List<Block> childrenBlocks, Format format) -
Method Summary
Methods inherited from class org.xwiki.rendering.block.AbstractBlock
addChild, addChildren, clone, clone, get, getAttribute, getAttributes, getBlocks, getChildren, getFirstBlock, getNextSibling, getParameter, getParameters, getParent, getPreviousSibling, getRoot, getSyntaxMetadata, indexOf, insertChildAfter, insertChildBefore, removeBlock, replaceChild, replaceChild, setAttribute, setAttributes, setChildren, setNextSiblingBlock, setParameter, setParameters, setParent, setPreviousSiblingBlock, traverse
-
Constructor Details
-
FormatBlock
public FormatBlock()Create an empty format 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. -
FormatBlock
- Parameters:
childrenBlocks- the nested children blocksformat- the formatting to apply to the children blocks
-
FormatBlock
- Parameters:
childrenBlocks- the nested children blocksformat- the formatting to apply to the children blocksparameters- the custom parameters
-
-
Method Details
-
getFormat
- Returns:
- the formatting to apply to the children blocks
-
before
Description copied from class:AbstractBlockSendListenerevents corresponding to the start of the block. For example for a Bold block, this allows an XHTML Listener (aka a Renderer) to output<b>.- Overrides:
beforein classAbstractBlock- Parameters:
listener- the listener that will receive the events sent by this block before its children blocks have emitted their own events.
-
after
Description copied from class:AbstractBlockSendListenerevents corresponding to the end of the block. For example for a Bold block, this allows an XHTML Listener (aka a Renderer) to output</b>.- Overrides:
afterin classAbstractBlock- Parameters:
listener- the listener that will receive the events sent by this block before its children blocks have emitted their own events.
-
equals
- Overrides:
equalsin classAbstractBlock
-
hashCode
public int hashCode()- Overrides:
hashCodein classAbstractBlock
-