|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xwiki.rendering.block.AbstractBlock
org.xwiki.rendering.block.WordBlock
public class WordBlock
Represents a word.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.xwiki.rendering.block.Block |
|---|
Block.Axes |
| Constructor Summary | |
|---|---|
WordBlock(String word)
|
|
| Method Summary | |
|---|---|
String |
getWord()
|
String |
toString()
|
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, getChildrenByType, getFirstBlock, getNextSibling, getParameter, getParameters, getParent, getParentBlockByType, getPreviousBlockByType, 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, wait, wait, wait |
| Constructor Detail |
|---|
public 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 blocks| Method Detail |
|---|
public void traverse(Listener listener)
BlockListener 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.
traverse in interface Blocktraverse in class AbstractBlocklistener - the listener to which to send the events to.public String getWord()
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||