Class TextAreaDecorator
- java.lang.Object
-
- org.apache.wiki.htmltowiki.syntax.TextAreaDecorator
-
public abstract class TextAreaDecorator extends java.lang.Object
Translates to wiki syntax from aTEXTAREAelement.
-
-
Field Summary
Fields Modifier and Type Field Description protected XHtmlElementToWikiTranslatorchainprotected java.io.PrintWriterout
-
Constructor Summary
Constructors Modifier Constructor Description protectedTextAreaDecorator(java.io.PrintWriter out, XHtmlElementToWikiTranslator chain)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voiddecorate(org.jdom2.Element e)Translates the given XHTML element into wiki markup.protected abstract java.lang.StringmarkupForTextAreaAttribute(java.lang.String attr, java.lang.String value)Wiki markup for anTEXTAREA's attribute.protected abstract java.lang.StringmarkupTextAreaClose()Closing wiki markup for anINPUTelement.protected abstract java.lang.StringmarkupTextAreaOpen()Opening wiki markup for anTEXTAREAelement.
-
-
-
Field Detail
-
out
protected final java.io.PrintWriter out
-
chain
protected final XHtmlElementToWikiTranslator chain
-
-
Constructor Detail
-
TextAreaDecorator
protected TextAreaDecorator(java.io.PrintWriter out, XHtmlElementToWikiTranslator chain)
-
-
Method Detail
-
decorate
public void decorate(org.jdom2.Element e) throws org.jdom2.JDOMException
Translates the given XHTML element into wiki markup.- Parameters:
e- XHTML element being translated.- Throws:
org.jdom2.JDOMException
-
markupForTextAreaAttribute
protected abstract java.lang.String markupForTextAreaAttribute(java.lang.String attr, java.lang.String value)
Wiki markup for anTEXTAREA's attribute.- Parameters:
attr- attribute's name.value- attribute's value.- Returns:
- Opening wiki markup for an
TEXTAREAelement.
-
markupTextAreaOpen
protected abstract java.lang.String markupTextAreaOpen()
Opening wiki markup for anTEXTAREAelement.- Returns:
- Opening wiki markup for an
TEXTAREAelement.
-
markupTextAreaClose
protected abstract java.lang.String markupTextAreaClose()
Closing wiki markup for anINPUTelement.- Returns:
- Closing wiki markup for an
INPUTelement.
-
-