org.xwiki.rendering.block
Class NewLineBlock
java.lang.Object
org.xwiki.rendering.block.AbstractBlock
org.xwiki.rendering.block.NewLineBlock
- All Implemented Interfaces:
- Cloneable, Block
public final class NewLineBlock
- extends AbstractBlock
Represents a new line or line break (it's up to the Renderers to decide if it should be outputted as a new
line or as a line break in the given syntax).
- Since:
- 1.5M2
- Version:
- $Id: 41eb17e67b43987166cfe02b489db4f287122fa6 $
| Nested classes/interfaces inherited from interface org.xwiki.rendering.block.Block |
Block.Axes |
| Methods inherited from class org.xwiki.rendering.block.AbstractBlock |
addChild, addChildren, after, before, clone, clone, equals, getBlocks, getChildren, getChildrenByType, getFirstBlock, getNextSibling, getParameter, getParameters, getParent, getPreviousSibling, getRoot, hashCode, insertChildAfter, insertChildBefore, removeBlock, replaceChild, replaceChild, setChildren, setNextSiblingBlock, setParameter, setParameters, setParent, setPreviousSiblingBlock |
NewLineBlock
public NewLineBlock()
- A new line block. Note that we don't make NewLineBlock a singleton since that would cause problems when using
Block APIs to manipulate a tree of blocks (for example to find the position of a new line block in a list using
List.indexOf(Object) wich would always return the first new line block).
- Since:
- 2.6RC1
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-2012 XWiki. All Rights Reserved.