|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xwiki.rendering.wikimodel.PrintTextListener
org.xwiki.rendering.wikimodel.xhtml.PrintInlineListener
public class PrintInlineListener
| Field Summary |
|---|
| Fields inherited from class org.xwiki.rendering.wikimodel.PrintTextListener |
|---|
fRefHandler |
| Constructor Summary | |
|---|---|
PrintInlineListener(IWikiPrinter printer)
|
|
PrintInlineListener(IWikiPrinter printer,
boolean supportImage,
boolean supportDownload)
|
|
| Method Summary | |
|---|---|
void |
beginFormat(WikiFormat format)
This method is called at the beginning of a sequence of in-line elements having the specified formatting parameters. |
void |
beginPropertyInline(String str)
This method is called to notify about the beginning of a new inline property found in the text of the parsed document. |
void |
endFormat(WikiFormat format)
This method is called to notify about the end of a sequence of in-line elements having common formatting parameters. |
void |
endPropertyInline(String inlineProperty)
This method is called to notify about the end of an inline property found in the text of the parsed document. |
protected String |
getSymbolEntity(String str)
Returns an HTML/XML entity corresponding to the specified special symbol. |
protected boolean |
isHtmlEntities()
Returns true if special Wiki entities should be represented
as the corresponding HTML entities or they should be visualized using the
corresponding XHTML codes (like & and so on). |
protected ReferenceHandler |
newReferenceHandler()
|
void |
onEscape(String str)
Escaped symbols. |
void |
onExtensionInline(String extensionName,
WikiParameters params)
This method is used to notify about a new extension which CAN generate in-line elements as a result of its interpretation. |
void |
onLineBreak()
This method is called to notify about a forced line break found in the text. |
void |
onSpecialSymbol(String str)
This method is called to notify about a sequence of special characters. |
void |
onVerbatimInline(String str,
WikiParameters params)
This method is called to notify about not-interpreted in-line sequence of characters which should be represented in the final text "as is". |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PrintInlineListener(IWikiPrinter printer)
public PrintInlineListener(IWikiPrinter printer,
boolean supportImage,
boolean supportDownload)
| Method Detail |
|---|
public void beginFormat(WikiFormat format)
IWemListenerInline
beginFormat in interface IWemListenerInlinebeginFormat in class PrintTextListenerformat - the object defining formatting parameters of in-line
elements.IWemListenerInline.beginFormat(org.xwiki.rendering.wikimodel.WikiFormat)public void beginPropertyInline(String str)
IWemListenerSemantic
beginPropertyInline in interface IWemListenerSemanticbeginPropertyInline in class PrintTextListenerstr - the URI of the semantic inline property found in the
documentIWemListenerSemantic.beginPropertyInline(java.lang.String)public void endFormat(WikiFormat format)
IWemListenerInline
endFormat in interface IWemListenerInlineendFormat in class PrintTextListenerformat - the formatting object defining how contained in-line
elements should be formattedIWemListenerInline.endFormat(org.xwiki.rendering.wikimodel.WikiFormat)public void endPropertyInline(String inlineProperty)
IWemListenerSemantic
endPropertyInline in interface IWemListenerSemanticendPropertyInline in class PrintTextListenerinlineProperty - the URI of the semantic inline property found in the
documentIWemListenerSemantic.endPropertyInline(java.lang.String)protected String getSymbolEntity(String str)
str - the special string to convert to an HTML/XML entity
protected boolean isHtmlEntities()
true if special Wiki entities should be represented
as the corresponding HTML entities or they should be visualized using the
corresponding XHTML codes (like & and so on). This method can be
overloaded in subclasses to re-define the visualization style.
true if special Wiki entities should be represented
as the corresponding HTML entities or they should be visualized
using the corresponding XHTML codes (like & and so on).protected ReferenceHandler newReferenceHandler()
newReferenceHandler in class PrintTextListenerpublic void onEscape(String str)
IWemListenerInline
onEscape in interface IWemListenerInlineonEscape in class PrintTextListenerstr - the escaped sequence of charactersIWemListenerInline.onEscape(java.lang.String)
public void onExtensionInline(String extensionName,
WikiParameters params)
IWemListenerProgramming
onExtensionInline in interface IWemListenerProgrammingonExtensionInline in class PrintTextListenerextensionName - the name of the extensionparams - parameters for the extensionpublic void onLineBreak()
IWemListenerInlineIWemListenerInline.onNewLine()
notification.
onLineBreak in interface IWemListenerInlineonLineBreak in class PrintTextListenerIWemListenerInline.onLineBreak()public void onSpecialSymbol(String str)
IWemListenerInline
The full list of possible special symbols:
"!", "\"", "#", "$", "%", "&", "'", "(",
")", "*", "+", ",", "-", ".", "/", ":",
";", "<", "=", ">", "?", "@", "[", "\\",
"]", "^", "_", "`", "{", "|", "}", "~"
onSpecialSymbol in interface IWemListenerInlineonSpecialSymbol in class PrintTextListenerstr - the sequence of special symbolsIWemListenerInline.onSpecialSymbol(java.lang.String)
public void onVerbatimInline(String str,
WikiParameters params)
IWemListenerInline
onVerbatimInline in interface IWemListenerInlineonVerbatimInline in class PrintTextListenerstr - the sequence of non-interpreted charactersparams - TODOIWemListenerInline.onVerbatimInline(java.lang.String,
WikiParameters)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||