public interface IWemListener extends IWemListenerDocument, IWemListenerSimpleBlocks, IWemListenerInline, IWemListenerTable, IWemListenerList, IWemListenerSemantic, IWemListenerProgramming
IWemListenerProvider provider = new MyWemListenerProvider(); provider.registerListener( IWemListenerDocument.class, new MyDocumentListener()); ... IWemListenerDocument docListener = provider.getListener(IWemListenerProvider.class); if (docListener != null) { docListener.beginDocument(); }Adapter-based approach is much more flexible and it can be used to transparently extend parsers to handle new types of structural elements.
beginDocument, beginHeader, beginSection, beginSectionContent, endDocument, endHeader, endSection, endSectionContent
beginInfoBlock, beginParagraph, endInfoBlock, endParagraph, onEmptyLines, onHorizontalLine, onVerbatimBlock
beginFormat, endFormat, onEscape, onImage, onImage, onLineBreak, onNewLine, onReference, onReference, onSpace, onSpecialSymbol, onVerbatimInline, onWord
beginTable, beginTableCell, beginTableRow, endTable, endTableCell, endTableRow, onTableCaption
beginDefinitionDescription, beginDefinitionList, beginDefinitionTerm, beginList, beginListItem, beginListItem, beginQuotation, beginQuotationLine, endDefinitionDescription, endDefinitionList, endDefinitionTerm, endList, endListItem, endListItem, endQuotation, endQuotationLine
beginPropertyBlock, beginPropertyInline, endPropertyBlock, endPropertyInline
onExtensionBlock, onExtensionInline, onMacroBlock, onMacroInline
Copyright © 2004–2021 XWiki. All rights reserved.