org.xwiki.rendering.block
Class EmptyLinesBlock

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

public class EmptyLinesBlock
extends AbstractBlock

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: 7fd0e9ef8e833cb72dace86132ead3977cb96cb1 $

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.xwiki.rendering.block.Block
Block.Axes
 
Constructor Summary
EmptyLinesBlock(int count)
           
 
Method Summary
 int getEmptyLinesCount()
           
 void setEmptyLinesCount(int count)
           
 void traverse(Listener listener)
          Let the block send Listener events corresponding to its content.
 
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
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EmptyLinesBlock

public EmptyLinesBlock(int count)
Parameters:
count - the number of empty lines between 2 standalone Blocks
Method Detail

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

public void traverse(Listener listener)
Description copied from interface: Block
Let the block send Listener events corresponding to its content. For example a Paragraph block will send the Listener.beginParagraph(java.util.Map) and Listener.endParagraph(java.util.Map) events when this method is called.

Specified by:
traverse in interface Block
Overrides:
traverse in class AbstractBlock
Parameters:
listener - the listener to which to send the events to.


Copyright © 2004–2015 XWiki. All rights reserved.