|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.AbstractSequentialList<E>
java.util.LinkedList<QueueListener.Event>
org.xwiki.rendering.listener.QueueListener
public class QueueListener
Manage a Queue of events.
| Nested Class Summary | |
|---|---|
class |
QueueListener.Event
An event. |
| Field Summary |
|---|
| Fields inherited from class java.util.AbstractList |
|---|
modCount |
| Fields inherited from interface org.xwiki.rendering.listener.Listener |
|---|
EMPTY_PARAMETERS |
| Constructor Summary | |
|---|---|
QueueListener()
|
|
| 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 |
consumeEvents(Listener listener)
Send all stored events to provided Listener. |
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. |
QueueListener.Event |
getEvent(int depth)
Returns the event at the specified position in this queue. |
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. |
| Methods inherited from class java.util.LinkedList |
|---|
add, add, addAll, addAll, addFirst, addLast, clear, clone, contains, descendingIterator, element, get, getFirst, getLast, indexOf, lastIndexOf, listIterator, offer, offerFirst, offerLast, peek, peekFirst, peekLast, poll, pollFirst, pollLast, pop, push, remove, remove, remove, removeFirst, removeFirstOccurrence, removeLast, removeLastOccurrence, set, size, toArray, toArray |
| Methods inherited from class java.util.AbstractSequentialList |
|---|
iterator |
| Methods inherited from class java.util.AbstractList |
|---|
equals, hashCode, listIterator, removeRange, subList |
| Methods inherited from class java.util.AbstractCollection |
|---|
containsAll, isEmpty, removeAll, retainAll, toString |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.List |
|---|
containsAll, equals, hashCode, isEmpty, iterator, listIterator, removeAll, retainAll, subList |
| Methods inherited from interface java.util.Deque |
|---|
iterator |
| Constructor Detail |
|---|
public QueueListener()
| Method Detail |
|---|
public QueueListener.Event getEvent(int depth)
depth - index of event to return.
public void consumeEvents(Listener listener)
Listener.
listener - the Listener on which to send eventspublic void beginDefinitionDescription()
Listener
beginDefinitionDescription in interface Listenerpublic void beginDefinitionList(Map<String,String> parameters)
beginDefinitionList in interface Listenerparameters - a generic list of parameters for the list. Example: "style"/"background-color: blue"public void beginDefinitionTerm()
Listener
beginDefinitionTerm in interface Listenerpublic void beginDocument(MetaData metaData)
beginDocument in interface ListenermetaData - the meta data to associate to the following events, see MetaDatapublic void beginGroup(Map<String,String> parameters)
Listener
beginGroup in interface Listenerparameters - a generic list of parameters. Example: style="background-color: blue"
public void beginFormat(Format format,
Map<String,String> parameters)
Listener
beginFormat in interface Listenerformat - the formatting type (bold, italic, etc)parameters - a generic list of parameters. Example: style="background-color: blue"Format
public void beginHeader(HeaderLevel level,
String id,
Map<String,String> parameters)
Listener
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"HeaderLevel
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"ResourceReference
public void beginList(ListType listType,
Map<String,String> parameters)
Listener
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"ListTypepublic void beginListItem()
Listener
beginListItem in interface Listener
public void beginMacroMarker(String name,
Map<String,String> parameters,
String content,
boolean isInline)
Listener
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.onMacro(String, java.util.Map, String, boolean)public void beginParagraph(Map<String,String> parameters)
Listener
beginParagraph in interface Listenerparameters - a generic list of parameters. Example: style="background-color: blue"public void beginQuotation(Map<String,String> parameters)
Listener
beginQuotation in interface Listenerparameters - a generic list of parameters for the quotation. Example: "style"/"background-color: blue"public void beginQuotationLine()
Listener
beginQuotationLine in interface Listenerpublic void beginSection(Map<String,String> parameters)
Listener
beginSection in interface Listenerparameters - a generic list of parameters. Example: style="background-color: blue"HeaderLevelpublic void beginTable(Map<String,String> parameters)
Listener
beginTable in interface Listenerparameters - a generic list of parameters for the table.public void beginTableCell(Map<String,String> parameters)
Listener
beginTableCell in interface Listenerparameters - a generic list of parameters for the table cell.public void beginTableHeadCell(Map<String,String> parameters)
Listener
beginTableHeadCell in interface Listenerparameters - a generic list of parameters for the table head cell.public void beginTableRow(Map<String,String> parameters)
Listener
beginTableRow in interface Listenerparameters - a generic list of parameters for the table row.public void beginMetaData(MetaData metadata)
beginMetaData in interface Listenermetadata - the metadatapublic void endDefinitionDescription()
Listener
endDefinitionDescription in interface Listenerpublic void endDefinitionList(Map<String,String> parameters)
endDefinitionList in interface Listenerparameters - a generic list of parameters for the list. Example: "style"/"background-color: blue"public void endDefinitionTerm()
Listener
endDefinitionTerm in interface Listenerpublic void endDocument(MetaData metaData)
endDocument in interface ListenermetaData - the meta data associated with the previous events, see MetaDatapublic void endGroup(Map<String,String> parameters)
Listener
endGroup in interface Listenerparameters - a generic list of parameters. Example: style="background-color: blue"
public void endFormat(Format format,
Map<String,String> parameters)
Listener
endFormat in interface Listenerformat - the formatting type (bold, italic, etc)parameters - a generic list of parameters. Example: style="background-color: blue"Format
public void endHeader(HeaderLevel level,
String id,
Map<String,String> parameters)
Listener
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"HeaderLevel
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"ResourceReference
public void endList(ListType listType,
Map<String,String> parameters)
Listener
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"ListTypepublic void endListItem()
Listener
endListItem in interface Listener
public void endMacroMarker(String name,
Map<String,String> parameters,
String content,
boolean isInline)
Listener
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.beginMacroMarker(String, java.util.Map, String, boolean)public void endParagraph(Map<String,String> parameters)
Listener
endParagraph in interface Listenerparameters - a generic list of parameters. Example: style="background-color: blue"public void endQuotation(Map<String,String> parameters)
Listener
endQuotation in interface Listenerparameters - a generic list of parameters for the quotation. Example: "style"/"background-color: blue"public void endQuotationLine()
Listener
endQuotationLine in interface Listenerpublic void endSection(Map<String,String> parameters)
Listener
endSection in interface Listenerparameters - a generic list of parameters. Example: style="background-color: blue"HeaderLevelpublic 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 endMetaData(MetaData metadata)
endMetaData in interface Listenermetadata - the metadataListener.endMetaData(MetaData)
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 onEmptyLines(int count)
onEmptyLines in interface Listenercount - the number of empty lines between 2 standalone BlocksListener.onEmptyLines(int)public void onHorizontalLine(Map<String,String> parameters)
onHorizontalLine in interface Listenerparameters - a generic list of parameters. Example: style="background-color: blue"Listener.onHorizontalLine(java.util.Map)public void onId(String name)
onId in interface Listenername - the location name.Listener.onId(java.lang.String)
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 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 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 onWord(String word)
onWord in interface Listenerword - the word encounteredListener.onWord(java.lang.String)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||