public class HeaderBlock extends AbstractBlock
Block.Axes
LIST_BLOCK_TYPE
Constructor and Description |
---|
HeaderBlock(List<Block> childBlocks,
HeaderLevel level) |
HeaderBlock(List<Block> childBlocks,
HeaderLevel level,
Map<String,String> parameters) |
HeaderBlock(List<Block> childBlocks,
HeaderLevel level,
Map<String,String> parameters,
String id) |
HeaderBlock(List<Block> childBlocks,
HeaderLevel level,
String id) |
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. |
boolean |
equals(Object obj) |
String |
getId() |
HeaderLevel |
getLevel() |
SectionBlock |
getSection() |
int |
hashCode() |
addChild, addChildren, clone, clone, getBlocks, getChildren, getFirstBlock, getNextSibling, getParameter, getParameters, getParent, getPreviousSibling, getRoot, indexOf, insertChildAfter, insertChildBefore, removeBlock, replaceChild, replaceChild, setChildren, setNextSiblingBlock, setParameter, setParameters, setParent, setPreviousSiblingBlock, traverse
public HeaderBlock(List<Block> childBlocks, HeaderLevel level)
childBlocks
- the children of the header.level
- the level of the headerpublic HeaderBlock(List<Block> childBlocks, HeaderLevel level, Map<String,String> parameters)
childBlocks
- the children of the header.level
- the level of the headerparameters
- the parameters of the headerpublic HeaderBlock(List<Block> childBlocks, HeaderLevel level, String id)
childBlocks
- the children of the header.level
- the level of the headerid
- the id of the header.public HeaderLevel getLevel()
public String getId()
public SectionBlock getSection()
SectionBlock
corresponding to this headerpublic 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.public boolean equals(Object obj)
equals
in class AbstractBlock
public int hashCode()
hashCode
in class AbstractBlock
Copyright © 2004–2021 XWiki. All rights reserved.