public class WordBlock extends AbstractBlock
Block.Axes| Modifier and Type | Method and Description |
|---|---|
String |
getWord() |
String |
toString() |
void |
traverse(Listener listener)
Let the block send
Listener events corresponding to its content. |
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, setPreviousSiblingBlockpublic WordBlock(String word)
word - the word wrapped by this block. Note that this is supposed to be a single word and space or special
symbols should be represented by other blockspublic void traverse(Listener listener)
BlockListener events corresponding to its content. For example a Paragraph block will send
the Listener.beginParagraph(java.util.Map<java.lang.String, java.lang.String>) and
Listener.endParagraph(java.util.Map<java.lang.String, java.lang.String>) events when this method is called.traverse in interface Blocktraverse in class AbstractBlocklistener - the listener to which to send the events to.public String getWord()
Copyright © 2004–2014 XWiki. All rights reserved.