public class GroupStateChainingListener extends AbstractChainingListener
BlockStateChainingListener class because we don't want this listener to
be stackable (since we need to create new instance of stackable listeners to reset states when we encounter a begin
group event but we also need to know we're inside a group).EMPTY_PARAMETERS| Constructor and Description |
|---|
GroupStateChainingListener(ListenerChain listenerChain) |
| Modifier and Type | Method and Description |
|---|---|
void |
beginGroup(Map<String,String> parameters)
Start a group of elements.
|
void |
endGroup(Map<String,String> parameters)
End of the group.
|
int |
getDocumentDepth() |
boolean |
isInGroup() |
beginDefinitionDescription, beginDefinitionList, beginDefinitionTerm, beginDocument, beginFigure, beginFigureCaption, beginFormat, beginHeader, beginLink, beginList, beginListItem, beginListItem, beginMacroMarker, beginMetaData, beginParagraph, beginQuotation, beginQuotationLine, beginSection, beginTable, beginTableCell, beginTableHeadCell, beginTableRow, endDefinitionDescription, endDefinitionList, endDefinitionTerm, endDocument, endFigure, endFigureCaption, endFormat, endHeader, endLink, endList, endListItem, endListItem, endMacroMarker, endMetaData, endParagraph, endQuotation, endQuotationLine, endSection, endTable, endTableCell, endTableHeadCell, endTableRow, getListenerChain, onEmptyLines, onHorizontalLine, onId, onImage, onMacro, onNewLine, onRawText, onSpace, onSpecialSymbol, onVerbatim, onWord, setListenerChainpublic GroupStateChainingListener(ListenerChain listenerChain)
public int getDocumentDepth()
public boolean isInGroup()
public void beginGroup(Map<String,String> parameters)
ListenerbeginGroup in interface ListenerbeginGroup in class AbstractChainingListenerparameters - a generic list of parameters. Example: style="background-color: blue"public void endGroup(Map<String,String> parameters)
ListenerendGroup in interface ListenerendGroup in class AbstractChainingListenerparameters - a generic list of parameters. Example: style="background-color: blue"Copyright © 2004–2020 XWiki. All rights reserved.