|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.wikimodel.wem.PrintTextListener
org.wikimodel.wem.xhtml.PrintInlineListener
org.wikimodel.wem.xhtml.PrintListener
public class PrintListener
| Field Summary |
|---|
| Fields inherited from class org.wikimodel.wem.PrintTextListener |
|---|
fRefHandler |
| Constructor Summary | |
|---|---|
PrintListener(IWikiPrinter printer)
|
|
| Method Summary | |
|---|---|
void |
beginDefinitionDescription()
This method is used to notify about a definition description. |
void |
beginDefinitionList(WikiParameters parameters)
This method is used to notify about a new definition list. |
void |
beginDefinitionTerm()
A definition term. |
void |
beginDocument(WikiParameters params)
This method is called to notify about the beginning of the top-level parsed document or about the beginning of an embedded document (contained in the main one). |
void |
beginHeader(int headerLevel,
WikiParameters params)
This method is called to notify about a new section header found in the document. |
void |
beginInfoBlock(java.lang.String infoType,
WikiParameters params)
This method is used to notify about the beginning of a "typed" paragraph. |
void |
beginList(WikiParameters parameters,
boolean ordered)
This method is used to notify about a new list. |
void |
beginListItem()
This method is used to notify about the beginning of a new item of a simple list (see IWemListenerList.beginList(WikiParameters, boolean)/
IWemListenerList.endList(WikiParameters, boolean) methods). |
void |
beginParagraph(WikiParameters params)
Begin of a simple paragraph. |
void |
beginPropertyBlock(java.lang.String propertyUri,
boolean doc)
This method is called to notify about the beginning of a new property found in the parsed document. |
void |
beginQuotation(WikiParameters params)
Notifies about the beginning of a quotation elements. |
void |
beginQuotationLine()
A list containing quotation. |
void |
beginTable(WikiParameters params)
This method notifies about the beginning of a new table in the document. |
void |
beginTableCell(boolean tableHead,
WikiParameters params)
This method is used to notify about the beginning of a new table cell. |
void |
beginTableRow(WikiParameters params)
This method is used to notify about the beginning of a new table row. |
void |
endDefinitionDescription()
This method is used to notify about the end of a definition description. |
void |
endDefinitionList(WikiParameters parameters)
This method is used to notify about the end of a definition list. |
void |
endDefinitionTerm()
The end of a definition term. |
void |
endDocument(WikiParameters params)
This method is used to notify about the end of a top-level or an internal document. |
void |
endHeader(int headerLevel,
WikiParameters params)
This method is called to notify about the end of a section-level header. |
void |
endInfoBlock(java.lang.String infoType,
WikiParameters params)
This method is used to notify about the end of a "typed" paragraph. |
void |
endList(WikiParameters parameters,
boolean ordered)
This method is used to notify about the end of a list. |
void |
endListItem()
This method is used to notify about the end of an item of a simple list (see IWemListenerList.beginList(WikiParameters, boolean)/
IWemListenerList.endList(WikiParameters, boolean) methods). |
void |
endParagraph(WikiParameters params)
End of a simple paragraph. |
void |
endPropertyBlock(java.lang.String propertyUri,
boolean doc)
This method is called to notify about the end of a block property found in the parsed document. |
void |
endQuotation(WikiParameters params)
Notifies about the end of a quotation element sequence. |
void |
endQuotationLine()
This method is used to notify about the end of a quotation line. |
void |
endTable(WikiParameters params)
This method notifies about the end of a table in the document. |
void |
endTableCell(boolean tableHead,
WikiParameters params)
This method is used to notify about the end of a table cell. |
void |
endTableRow(WikiParameters params)
This method is used to notify about the end of a table row. |
void |
onEmptyLines(int count)
This method is used to notify about a sequence of empty lines. |
void |
onExtensionBlock(java.lang.String extensionName,
WikiParameters params)
This method is used to notify about a new extension which CAN generate block elements as a result of its interpretation. |
void |
onHorizontalLine(WikiParameters params)
This method notifies horizontal lines defined in the text. |
void |
onMacroBlock(java.lang.String macroName,
WikiParameters params,
java.lang.String content)
This method is used to notify about a new in-line macro which CAN generate block elements as a result of its interpretation. |
void |
onMacroInline(java.lang.String macroName,
WikiParameters params,
java.lang.String content)
This method is used to notify about a new in-line macro which CAN generate only in-line elements as a result of its interpretation. |
void |
onTableCaption(java.lang.String str)
Notifies the table caption. |
void |
onVerbatimBlock(java.lang.String str,
WikiParameters params)
This method notifies about a verbatim (pre-formatted) block defined in the text |
| Methods inherited from class org.wikimodel.wem.xhtml.PrintInlineListener |
|---|
beginFormat, beginPropertyInline, endFormat, endPropertyInline, getSymbolEntity, isHtmlEntities, newReferenceHandler, onEscape, onExtensionInline, onLineBreak, onSpecialSymbol, onVerbatimInline |
| Methods inherited from class org.wikimodel.wem.PrintTextListener |
|---|
beginSection, beginSectionContent, endBlock, endSection, endSectionContent, onImage, onImage, onNewLine, onReference, onReference, onSpace, onWord, print, println, println |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PrintListener(IWikiPrinter printer)
printer - | Method Detail |
|---|
public void beginDefinitionDescription()
IWemListenerList
beginDefinitionDescription in interface IWemListenerListbeginDefinitionDescription in class PrintTextListenerIWemListenerList.beginDefinitionDescription()public void beginDefinitionList(WikiParameters parameters)
IWemListenerList
beginDefinitionList in interface IWemListenerListbeginDefinitionList in class PrintTextListenerparameters - list of parameters for the listIWemListenerList.beginDefinitionList(org.wikimodel.wem.WikiParameters)public void beginDefinitionTerm()
IWemListenerList
beginDefinitionTerm in interface IWemListenerListbeginDefinitionTerm in class PrintTextListenerIWemListenerList.beginDefinitionTerm()public void beginDocument(WikiParameters params)
IWemListenerDocument
beginDocument in interface IWemListenerDocumentbeginDocument in class PrintTextListenerIWemListenerDocument.beginDocument(org.wikimodel.wem.WikiParameters)
public void beginHeader(int headerLevel,
WikiParameters params)
IWemListenerDocument
beginHeader in interface IWemListenerDocumentbeginHeader in class PrintTextListenerheaderLevel - the level of the found header; valid values: 1-6params - wiki parameters associated with theIWemListenerDocument.beginHeader(int, WikiParameters)
public void beginInfoBlock(java.lang.String infoType,
WikiParameters params)
IWemListenerSimpleBlocks
beginInfoBlock in interface IWemListenerSimpleBlocksbeginInfoBlock in class PrintTextListenerinfoType - the "type" of the special blockparams - parameters of this blockIWemListenerSimpleBlocks.beginInfoBlock(String,
org.wikimodel.wem.WikiParameters)
public void beginList(WikiParameters parameters,
boolean ordered)
IWemListenerListIWemListenerList.beginListItem()/IWemListenerList.endListItem() method pair. Items of
lists of this type can contain the following sequence of elements:
beginList in interface IWemListenerListbeginList in class PrintTextListenerparameters - parameters of the listordered - if this flag is true then this method
corresponds to a new ordered list ("ol"); otherwise this method
notifies a beginning of an unordered list ("ul")IWemListenerList.beginList(org.wikimodel.wem.WikiParameters,
boolean)public void beginListItem()
IWemListenerListIWemListenerList.beginList(WikiParameters, boolean)/
IWemListenerList.endList(WikiParameters, boolean) methods).
beginListItem in interface IWemListenerListbeginListItem in class PrintTextListenerIWemListenerList.beginListItem()public void beginParagraph(WikiParameters params)
IWemListenerSimpleBlocks
beginParagraph in interface IWemListenerSimpleBlocksbeginParagraph in class PrintTextListenerparams - paragraph parametersIWemListenerSimpleBlocks.beginParagraph(org.wikimodel.wem.WikiParameters)
public void beginPropertyBlock(java.lang.String propertyUri,
boolean doc)
IWemListenerSemantic
beginPropertyBlock in interface IWemListenerSemanticbeginPropertyBlock in class PrintTextListenerpropertyUri - the URI of the semantic block property found in the
documentdoc - this flag is true if the found property contains
a whole document; if this flag is false then expected
property value contains a paragraphIWemListenerSemantic.beginPropertyBlock(java.lang.String,
boolean)public void beginQuotation(WikiParameters params)
IWemListenerList
beginQuotation in interface IWemListenerListbeginQuotation in class PrintTextListenerparams - parameters of the listIWemListenerList.beginQuotation(org.wikimodel.wem.WikiParameters)public void beginQuotationLine()
IWemListenerList
beginQuotationLine in interface IWemListenerListbeginQuotationLine in class PrintTextListenerIWemListenerList.beginQuotationLine()public void beginTable(WikiParameters params)
IWemListenerTable
beginTable in interface IWemListenerTablebeginTable in class PrintTextListenerparams - table parametersIWemListenerTable.beginTable(org.wikimodel.wem.WikiParameters)
public void beginTableCell(boolean tableHead,
WikiParameters params)
IWemListenerTable
beginTableCell in interface IWemListenerTablebeginTableCell in class PrintTextListenertableHead - if this flag is true then the reported cell
corresponds to the table head ("th" element); otherwise it should
be considered as a normal table cell ("td" element).params - parameters of this cellIWemListenerTable.beginTableCell(boolean,
WikiParameters)public void beginTableRow(WikiParameters params)
IWemListenerTable
beginTableRow in interface IWemListenerTablebeginTableRow in class PrintTextListenerparams - parameters of the row.IWemListenerTable.beginTableRow(org.wikimodel.wem.WikiParameters)public void endDefinitionDescription()
IWemListenerList
endDefinitionDescription in interface IWemListenerListendDefinitionDescription in class PrintTextListenerIWemListenerList.endDefinitionDescription()public void endDefinitionList(WikiParameters parameters)
IWemListenerList
endDefinitionList in interface IWemListenerListendDefinitionList in class PrintTextListenerparameters - list of parameters for the listIWemListenerList.endDefinitionList(org.wikimodel.wem.WikiParameters)public void endDefinitionTerm()
IWemListenerList
endDefinitionTerm in interface IWemListenerListendDefinitionTerm in class PrintTextListenerIWemListenerList.endDefinitionTerm()public void endDocument(WikiParameters params)
IWemListenerDocument
endDocument in interface IWemListenerDocumentendDocument in class PrintTextListenerIWemListenerDocument.endDocument(org.wikimodel.wem.WikiParameters)
public void endHeader(int headerLevel,
WikiParameters params)
IWemListenerDocument
endHeader in interface IWemListenerDocumentendHeader in class PrintTextListenerheaderLevel - the level of the headerparams - wiki parameters of the headerIWemListenerDocument.endHeader(int, WikiParameters)
public void endInfoBlock(java.lang.String infoType,
WikiParameters params)
IWemListenerSimpleBlocks
endInfoBlock in interface IWemListenerSimpleBlocksendInfoBlock in class PrintTextListenerinfoType - the "type" of the special blockparams - parameters of this blockIWemListenerSimpleBlocks.endInfoBlock(String,
org.wikimodel.wem.WikiParameters)
public void endList(WikiParameters parameters,
boolean ordered)
IWemListenerList
endList in interface IWemListenerListendList in class PrintTextListenerparameters - parameters of the listordered - if this flag is true then this method
corresponds to a new ordered list ("ol"); otherwise this method
notifies a beginning of an unordered list ("ul")IWemListenerList.endList(org.wikimodel.wem.WikiParameters,
boolean)public void endListItem()
IWemListenerListIWemListenerList.beginList(WikiParameters, boolean)/
IWemListenerList.endList(WikiParameters, boolean) methods).
endListItem in interface IWemListenerListendListItem in class PrintTextListenerIWemListenerList.endListItem()public void endParagraph(WikiParameters params)
IWemListenerSimpleBlocks
endParagraph in interface IWemListenerSimpleBlocksendParagraph in class PrintTextListenerparams - paragraph parametersIWemListenerSimpleBlocks.endParagraph(org.wikimodel.wem.WikiParameters)
public void endPropertyBlock(java.lang.String propertyUri,
boolean doc)
IWemListenerSemantic
endPropertyBlock in interface IWemListenerSemanticendPropertyBlock in class PrintTextListenerpropertyUri - the URI of the semantic block property found in the
documentdoc - this flag is true if the found property contains
a whole document; otherwise (if this flag is false)
the value of the property is a simple paragraphIWemListenerSemantic.endPropertyBlock(java.lang.String,
boolean)public void endQuotation(WikiParameters params)
IWemListenerList
endQuotation in interface IWemListenerListendQuotation in class PrintTextListenerparams - parameters of the listIWemListenerList.endQuotation(org.wikimodel.wem.WikiParameters)public void endQuotationLine()
IWemListenerList
endQuotationLine in interface IWemListenerListendQuotationLine in class PrintTextListenerIWemListenerList.endQuotationLine()public void endTable(WikiParameters params)
IWemListenerTable
endTable in interface IWemListenerTableendTable in class PrintTextListenerparams - table parametersIWemListenerTable.endTable(org.wikimodel.wem.WikiParameters)
public void endTableCell(boolean tableHead,
WikiParameters params)
IWemListenerTable
endTableCell in interface IWemListenerTableendTableCell in class PrintTextListenertableHead - if this flag is true then the reported cell
corresponds to the table head ("th" element); otherwise it should
be considered as a normal table cell ("td" element).params - parameters of this cellIWemListenerTable.endTableCell(boolean, WikiParameters)public void endTableRow(WikiParameters params)
IWemListenerTable
endTableRow in interface IWemListenerTableendTableRow in class PrintTextListenerparams - parameters of the row.IWemListenerTable.endTableRow(org.wikimodel.wem.WikiParameters)public void onEmptyLines(int count)
IWemListenerSimpleBlocks
onEmptyLines in interface IWemListenerSimpleBlocksonEmptyLines in class PrintTextListenercount - the number of empty lines found in the text
public void onExtensionBlock(java.lang.String extensionName,
WikiParameters params)
IWemListenerProgramming
onExtensionBlock in interface IWemListenerProgrammingonExtensionBlock in class PrintTextListenerextensionName - the name of the extensionparams - parameters for the extensionPrintTextListener.onExtensionBlock(java.lang.String,
org.wikimodel.wem.WikiParameters)public void onHorizontalLine(WikiParameters params)
IWemListenerSimpleBlocks
onHorizontalLine in interface IWemListenerSimpleBlocksonHorizontalLine in class PrintTextListenerparams - parameters of the horizontal lineIWemListenerSimpleBlocks.onHorizontalLine(WikiParameters
params)
public void onMacroBlock(java.lang.String macroName,
WikiParameters params,
java.lang.String content)
IWemListenerProgramming
onMacroBlock in interface IWemListenerProgrammingonMacroBlock in class PrintTextListenermacroName - the name of the macroparams - parameters of the macrocontent - the content of the macro
public void onMacroInline(java.lang.String macroName,
WikiParameters params,
java.lang.String content)
IWemListenerProgramming
onMacroInline in interface IWemListenerProgrammingonMacroInline in class PrintTextListenermacroName - the name of the macroparams - parameters of the macrocontent - the content of the macropublic void onTableCaption(java.lang.String str)
IWemListenerTable
onTableCaption in interface IWemListenerTableonTableCaption in class PrintTextListenerstr - the content of the table captionIWemListenerTable.onTableCaption(java.lang.String)
public void onVerbatimBlock(java.lang.String str,
WikiParameters params)
IWemListenerSimpleBlocks
onVerbatimBlock in interface IWemListenerSimpleBlocksonVerbatimBlock in class PrintTextListenerstr - the content of the verbatim (pre-formatted) blockparams - parameters of the verbatim blockIWemListenerSimpleBlocks.onVerbatimBlock(String,
WikiParameters)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||