Package org.xwiki.rendering.block
Class HeaderBlock
java.lang.Object
org.xwiki.rendering.block.AbstractBlock
org.xwiki.rendering.block.HeaderBlock
- Since:
- 1.5M2
- Version:
- $Id: 25896b1ce244504087acea5e5787ebc845437334 $
-
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
ConstructorsConstructorDescriptionHeaderBlock(List<Block> childBlocks, HeaderLevel level) HeaderBlock(List<Block> childBlocks, HeaderLevel level, String id) HeaderBlock(List<Block> childBlocks, HeaderLevel level, Map<String, String> parameters) HeaderBlock(List<Block> childBlocks, HeaderLevel level, Map<String, String> parameters, String id) -
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
-
HeaderBlock
- Parameters:
childBlocks- the children of the header.level- the level of the header
-
HeaderBlock
- Parameters:
childBlocks- the children of the header.level- the level of the headerparameters- the parameters of the header
-
HeaderBlock
- Parameters:
childBlocks- the children of the header.level- the level of the headerid- the id of the header.
-
HeaderBlock
public HeaderBlock(List<Block> childBlocks, HeaderLevel level, Map<String, String> parameters, String id) - Parameters:
childBlocks- the children of the header.level- the level of the headerparameters- the parameters of the headerid- the id of the header.
-
-
Method Details
-
getLevel
- Returns:
- the level of the header
-
getId
- Returns:
- the id of the header.
-
setId
- Parameters:
id- the id of the header to set- Since:
- 14.2RC1
-
getSection
- Returns:
- the
SectionBlockcorresponding to this header
-
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
-