|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xwiki.rendering.listener.WrappingListener
public class WrappingListener
A Listener wrapping another Listener.
| Field Summary |
|---|
| Fields inherited from interface org.xwiki.rendering.listener.Listener |
|---|
EMPTY_PARAMETERS |
| Constructor Summary | |
|---|---|
WrappingListener()
|
|
| Method Summary | |
|---|---|
void |
beginDefinitionDescription()
Start of a definition list description. |
void |
beginDefinitionList(Map<String,String> parameters)
Start of a definition list. |
void |
beginDefinitionTerm()
Start of a definition list term. |
void |
beginDocument(MetaData metaData)
Start of the document. |
void |
beginFormat(Format format,
Map<String,String> parameters)
End of a text formatting block. |
void |
beginGroup(Map<String,String> parameters)
Start a group of elements. |
void |
beginHeader(HeaderLevel level,
String id,
Map<String,String> parameters)
Start of a header. |
void |
beginLink(ResourceReference reference,
boolean isFreeStandingURI,
Map<String,String> parameters)
Start of a link. |
void |
beginList(ListType listType,
Map<String,String> parameters)
Start of a list. |
void |
beginListItem()
Start of a list item. |
void |
beginMacroMarker(String name,
Map<String,String> parameters,
String content,
boolean isInline)
Start of marker containing a macro definition. |
void |
beginMetaData(MetaData metadata)
Start of MetaData (eg saving source from where the content is coming from). |
void |
beginParagraph(Map<String,String> parameters)
Start of a paragraph. |
void |
beginQuotation(Map<String,String> parameters)
Start of a quotation. |
void |
beginQuotationLine()
Start of a quotation line. |
void |
beginSection(Map<String,String> parameters)
Start of a section. |
void |
beginTable(Map<String,String> parameters)
Start of a table. |
void |
beginTableCell(Map<String,String> parameters)
Start of a table cell. |
void |
beginTableHeadCell(Map<String,String> parameters)
Start of a table head cell. |
void |
beginTableRow(Map<String,String> parameters)
Start of a table row. |
void |
endDefinitionDescription()
End of a definition list description. |
void |
endDefinitionList(Map<String,String> parameters)
End of a definition list. |
void |
endDefinitionTerm()
End of a definition list term. |
void |
endDocument(MetaData metaData)
End of the document. |
void |
endFormat(Format format,
Map<String,String> parameters)
End of a text formatting block. |
void |
endGroup(Map<String,String> parameters)
End of the group. |
void |
endHeader(HeaderLevel level,
String id,
Map<String,String> parameters)
End of a header. |
void |
endLink(ResourceReference reference,
boolean isFreeStandingURI,
Map<String,String> parameters)
End of a link. |
void |
endList(ListType listType,
Map<String,String> parameters)
End of a list. |
void |
endListItem()
End of a list item. |
void |
endMacroMarker(String name,
Map<String,String> parameters,
String content,
boolean isInline)
End of marker containing a macro definition. |
void |
endMetaData(MetaData metadata)
End of MetaData. |
void |
endParagraph(Map<String,String> parameters)
End of a paragraph. |
void |
endQuotation(Map<String,String> parameters)
End of a quotation. |
void |
endQuotationLine()
End of a quotation line. |
void |
endSection(Map<String,String> parameters)
End of a section. |
void |
endTable(Map<String,String> parameters)
End of a table. |
void |
endTableCell(Map<String,String> parameters)
End of a table cell. |
void |
endTableHeadCell(Map<String,String> parameters)
End of a table head cell. |
void |
endTableRow(Map<String,String> parameters)
End of a table row. |
Listener |
getWrappedListener()
|
void |
onEmptyLines(int count)
Represents an empty line between 2 standalone Blocks. |
void |
onHorizontalLine(Map<String,String> parameters)
Represents an horizontal line. |
void |
onId(String name)
A reference/location in a page. |
void |
onImage(ResourceReference reference,
boolean isFreeStandingURI,
Map<String,String> parameters)
An image. |
void |
onMacro(String id,
Map<String,String> parameters,
String content,
boolean isInline)
A Macro. |
void |
onNewLine()
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). |
void |
onRawText(String text,
Syntax syntax)
Some text to inject directly into the listener output without parsing it. |
void |
onSpace()
A space. |
void |
onSpecialSymbol(char symbol)
A special symbol ("*", "<", ">", "=", quote, etc). |
void |
onVerbatim(String protectedString,
boolean isInline,
Map<String,String> parameters)
A portion of text. |
void |
onWord(String word)
A word. |
void |
setWrappedListener(Listener listener)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WrappingListener()
| Method Detail |
|---|
public void setWrappedListener(Listener listener)
listener - the Listener to wrappublic Listener getWrappedListener()
public void beginDocument(MetaData metaData)
beginDocument in interface ListenermetaData - the meta data to associate to the following events, see MetaDataListener.beginDocument(MetaData)public void endDocument(MetaData metaData)
endDocument in interface ListenermetaData - the meta data associated with the previous events, see MetaDataListener.endDocument(MetaData)public void beginGroup(Map<String,String> parameters)
beginGroup in interface Listenerparameters - a generic list of parameters. Example: style="background-color: blue"Listener.beginGroup(Map)public void endGroup(Map<String,String> parameters)
endGroup in interface Listenerparameters - a generic list of parameters. Example: style="background-color: blue"Listener.endGroup(Map)
public void beginFormat(Format format,
Map<String,String> parameters)
beginFormat in interface Listenerformat - the formatting type (bold, italic, etc)parameters - a generic list of parameters. Example: style="background-color: blue"Listener.beginFormat(Format, Map)
public void beginList(ListType listType,
Map<String,String> parameters)
beginList in interface ListenerlistType - the type of list (bulleted, numbered, etc)parameters - a generic list of parameters for the list. Example: "style"/"background-color: blue"Listener.beginList(org.xwiki.rendering.listener.ListType, java.util.Map)public void beginListItem()
beginListItem in interface ListenerListener.beginListItem()
public void beginMacroMarker(String name,
Map<String,String> parameters,
String content,
boolean isInline)
beginMacroMarker in interface Listenername - the macro nameparameters - the macro parameterscontent - the macro contentisInline - if true the macro is located in a inline content (like paragraph, etc.)Listener.beginMacroMarker(java.lang.String, java.util.Map, java.lang.String,
boolean)public void beginParagraph(Map<String,String> parameters)
beginParagraph in interface Listenerparameters - a generic list of parameters. Example: style="background-color: blue"Listener.beginParagraph(java.util.Map)public void beginSection(Map<String,String> parameters)
beginSection in interface Listenerparameters - a generic list of parameters. Example: style="background-color: blue"Listener.beginSection(java.util.Map)
public void beginHeader(HeaderLevel level,
String id,
Map<String,String> parameters)
beginHeader in interface Listenerlevel - the header level (1, 2, 3, etc)id - the header unique identifierparameters - a generic list of parameters. Example: style="background-color: blue"Listener.beginHeader(org.xwiki.rendering.listener.HeaderLevel,
java.lang.String, java.util.Map)
public void endFormat(Format format,
Map<String,String> parameters)
endFormat in interface Listenerformat - the formatting type (bold, italic, etc)parameters - a generic list of parameters. Example: style="background-color: blue"Listener.endFormat(Format, Map)
public void endList(ListType listType,
Map<String,String> parameters)
endList in interface ListenerlistType - the type of list (bulleted, numbered, etc)parameters - a generic list of parameters for the list. Example: "style"/"background-color: blue"Listener.endList(org.xwiki.rendering.listener.ListType, java.util.Map)public void endListItem()
endListItem in interface ListenerListener.endListItem()
public void endMacroMarker(String name,
Map<String,String> parameters,
String content,
boolean isInline)
endMacroMarker in interface Listenername - the macro nameparameters - the macro parameterscontent - the macro contentisInline - if true the macro is located in a inline content (like paragraph, etc.)Listener.endMacroMarker(java.lang.String, java.util.Map, java.lang.String,
boolean)public void endParagraph(Map<String,String> parameters)
endParagraph in interface Listenerparameters - a generic list of parameters. Example: style="background-color: blue"Listener.endParagraph(java.util.Map)public void endSection(Map<String,String> parameters)
endSection in interface Listenerparameters - a generic list of parameters. Example: style="background-color: blue"Listener.endSection(java.util.Map)
public void endHeader(HeaderLevel level,
String id,
Map<String,String> parameters)
endHeader in interface Listenerlevel - the header level (1, 2, 3, etc)id - the header unique identifierparameters - a generic list of parameters. Example: style="background-color: blue"Listener.endHeader(org.xwiki.rendering.listener.HeaderLevel, java.lang.String,
java.util.Map)
public void beginLink(ResourceReference reference,
boolean isFreeStandingURI,
Map<String,String> parameters)
beginLink in interface LinkListenerreference - the link referenceisFreeStandingURI - if true then the link is a free standing URI directly in the textparameters - a generic list of parameters. Example: style="background-color: blue"LinkListener.beginLink(ResourceReference , boolean,
java.util.Map)
public void endLink(ResourceReference reference,
boolean isFreeStandingURI,
Map<String,String> parameters)
endLink in interface LinkListenerreference - the link referenceisFreeStandingURI - if true then the link is a free standing URI directly in the textparameters - a generic list of parameters. Example: style="background-color: blue"LinkListener.endLink(ResourceReference , boolean, java.util.Map)
public void onMacro(String id,
Map<String,String> parameters,
String content,
boolean isInline)
onMacro in interface Listenerid - the macro id (eg "toc" for the TOC macro)parameters - the macro parameterscontent - the macro contentisInline - if true the macro is located in a inline content (like paragraph, etc.)Listener.onMacro(java.lang.String, java.util.Map, java.lang.String, boolean)public void onNewLine()
onNewLine in interface ListenerListener.onNewLine()public void onSpace()
onSpace in interface ListenerListener.onSpace()public void onSpecialSymbol(char symbol)
onSpecialSymbol in interface Listenersymbol - the symbol encounteredListener.onSpecialSymbol(char)public void onWord(String word)
onWord in interface Listenerword - the word encounteredListener.onWord(java.lang.String)public void onId(String name)
onId in interface Listenername - the location name.Listener.onId(java.lang.String)public void onHorizontalLine(Map<String,String> parameters)
onHorizontalLine in interface Listenerparameters - a generic list of parameters. Example: style="background-color: blue"Listener.onHorizontalLine(Map)public void onEmptyLines(int count)
onEmptyLines in interface Listenercount - the number of empty lines between 2 standalone BlocksListener.onEmptyLines(int)
public void onVerbatim(String protectedString,
boolean isInline,
Map<String,String> parameters)
onVerbatim in interface ListenerprotectedString - the string to protected from renderingisInline - if true the text content is located in a inline content (like paragraph, etc.)parameters - a generic list of parameters. Example: style="background-color: blue"Listener.onVerbatim(String, boolean, Map)
public void onRawText(String text,
Syntax syntax)
onRawText in interface Listenertext - the text to injectsyntax - the syntax in which the text is written. This is useful so that listener implementations can decide
whether they can handle direct inject for that syntaxListener.onRawText(String, Syntax)public void beginDefinitionList(Map<String,String> parameters)
beginDefinitionList in interface Listenerparameters - a generic list of parameters for the list. Example: "style"/"background-color: blue"Listener.beginDefinitionList(java.util.Map)public void endDefinitionList(Map<String,String> parameters)
endDefinitionList in interface Listenerparameters - a generic list of parameters for the list. Example: "style"/"background-color: blue"Listener.endDefinitionList(java.util.Map)public void beginDefinitionTerm()
beginDefinitionTerm in interface ListenerListener.beginDefinitionTerm()public void beginDefinitionDescription()
beginDefinitionDescription in interface ListenerListener.beginDefinitionDescription()public void endDefinitionTerm()
endDefinitionTerm in interface ListenerListener.endDefinitionTerm()public void endDefinitionDescription()
endDefinitionDescription in interface ListenerListener.endDefinitionDescription()public void beginQuotation(Map<String,String> parameters)
beginQuotation in interface Listenerparameters - a generic list of parameters for the quotation. Example: "style"/"background-color: blue"Listener.beginQuotation(java.util.Map)public void endQuotation(Map<String,String> parameters)
endQuotation in interface Listenerparameters - a generic list of parameters for the quotation. Example: "style"/"background-color: blue"Listener.endQuotation(java.util.Map)public void beginQuotationLine()
beginQuotationLine in interface ListenerListener.beginQuotationLine()public void endQuotationLine()
endQuotationLine in interface ListenerListener.endQuotationLine()public void beginTable(Map<String,String> parameters)
beginTable in interface Listenerparameters - a generic list of parameters for the table.Listener.beginTable(java.util.Map)public void beginTableCell(Map<String,String> parameters)
beginTableCell in interface Listenerparameters - a generic list of parameters for the table cell.Listener.beginTableCell(java.util.Map)public void beginTableHeadCell(Map<String,String> parameters)
beginTableHeadCell in interface Listenerparameters - a generic list of parameters for the table head cell.Listener.beginTableHeadCell(java.util.Map)public void beginTableRow(Map<String,String> parameters)
beginTableRow in interface Listenerparameters - a generic list of parameters for the table row.Listener.beginTableRow(java.util.Map)public void endTable(Map<String,String> parameters)
endTable in interface Listenerparameters - a generic list of parameters for the table.Listener.endTable(java.util.Map)public void endTableCell(Map<String,String> parameters)
endTableCell in interface Listenerparameters - a generic list of parameters for the table cell.Listener.endTableCell(java.util.Map)public void endTableHeadCell(Map<String,String> parameters)
endTableHeadCell in interface Listenerparameters - a generic list of parameters for the table head cell.Listener.endTableHeadCell(java.util.Map)public void endTableRow(Map<String,String> parameters)
endTableRow in interface Listenerparameters - a generic list of parameters for the table row.Listener.endTableRow(java.util.Map)
public void onImage(ResourceReference reference,
boolean isFreeStandingURI,
Map<String,String> parameters)
onImage in interface ImageListenerreference - the image referenceisFreeStandingURI - if true then the image is defined directly as a URI in the textparameters - a generic list of parameters. Example: style="background-color: blue"ImageListener.onImage(ResourceReference, boolean, java.util.Map)public void beginMetaData(MetaData metadata)
beginMetaData in interface Listenermetadata - the metadataListener.beginMetaData(MetaData)public void endMetaData(MetaData metadata)
endMetaData in interface Listenermetadata - the metadataListener.endMetaData(MetaData)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||