Package org.xwiki.rendering.block
Class EmptyLinesBlock
java.lang.Object
org.xwiki.rendering.block.AbstractBlock
org.xwiki.rendering.block.EmptyLinesBlock
Represents an empty line between 2 standalone Blocks. A standalone block is block that is not included in another
block. Standalone blocks are Paragraph, Standalone Macro, Lists, Table, etc.
- Since:
- 1.6M2
- Version:
- $Id: 6af3831379d6f1dab31037d00a6e3c1ba67b7cbc $
-
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanintinthashCode()voidsetEmptyLinesCount(int count) voidLet the block sendListenerevents corresponding to its content.Methods inherited from class org.xwiki.rendering.block.AbstractBlock
addChild, addChildren, after, before, 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
-
Constructor Details
-
EmptyLinesBlock
public EmptyLinesBlock(int count) - Parameters:
count- the number of empty lines between 2 standalone Blocks
-
-
Method Details
-
getEmptyLinesCount
public int getEmptyLinesCount()- Returns:
- the number of empty lines between 2 standalone Blocks
-
setEmptyLinesCount
public void setEmptyLinesCount(int count) - Parameters:
count- the number of empty lines between 2 standalone Blocks
-
traverse
Description copied from interface:BlockLet the block sendListenerevents corresponding to its content. For example a Paragraph block will send theListener.beginParagraph(java.util.Map<java.lang.String, java.lang.String>)andListener.endParagraph(java.util.Map<java.lang.String, java.lang.String>)events when this method is called.- Specified by:
traversein interfaceBlock- Overrides:
traversein classAbstractBlock- Parameters:
listener- the listener to which to send the events to.
-
equals
- Overrides:
equalsin classAbstractBlock
-
hashCode
public int hashCode()- Overrides:
hashCodein classAbstractBlock
-