Class SelectDecorator
- java.lang.Object
-
- org.apache.wiki.htmltowiki.syntax.SelectDecorator
-
public abstract class SelectDecorator extends java.lang.Object
Translates to wiki syntax from aSELECT
element.
-
-
Field Summary
Fields Modifier and Type Field Description protected XHtmlElementToWikiTranslator
chain
protected java.io.PrintWriter
out
-
Constructor Summary
Constructors Constructor Description SelectDecorator(java.io.PrintWriter out, XHtmlElementToWikiTranslator chain)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
decorate(org.jdom2.Element e)
Translates the given XHTML element into wiki markup.protected abstract java.lang.String
markupForSelectAttributeClose()
Closing wiki markup for aSELECT
's attribute.protected abstract java.lang.String
markupForSelectAttributeOpen(java.lang.String attr)
Opening wiki markup for aSELECT
's attribute.protected abstract java.lang.String
markupSelectClose()
Closing wiki markup for anSELECT
element.protected abstract java.lang.String
markupSelectOpen()
Opening wiki markup for anSELECT
element.
-
-
-
Field Detail
-
out
protected final java.io.PrintWriter out
-
chain
protected final XHtmlElementToWikiTranslator chain
-
-
Constructor Detail
-
SelectDecorator
public SelectDecorator(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
-
markupForSelectAttributeOpen
protected abstract java.lang.String markupForSelectAttributeOpen(java.lang.String attr)
Opening wiki markup for aSELECT
's attribute.- Parameters:
attr
- attribute's name.- Returns:
- Opening wiki markup for a
SELECT
element.
-
markupForSelectAttributeClose
protected abstract java.lang.String markupForSelectAttributeClose()
Closing wiki markup for aSELECT
's attribute.- Returns:
- Closing wiki markup for a
SELECT
element.
-
markupSelectOpen
protected abstract java.lang.String markupSelectOpen()
Opening wiki markup for anSELECT
element.- Returns:
- Opening wiki markup for an
SELECT
element.
-
markupSelectClose
protected abstract java.lang.String markupSelectClose()
Closing wiki markup for anSELECT
element.- Returns:
- Closing wiki markup for an
SELECT
element.
-
-