com.ecyrd.jspwiki
Class TranslatorReader.TextRenderer

java.lang.Object
  extended by com.ecyrd.jspwiki.TranslatorReader.TextRenderer
Enclosing class:
TranslatorReader

public class TranslatorReader.TextRenderer
extends Object

A very simple class for outputting plain text with no formatting.


Constructor Summary
TranslatorReader.TextRenderer()
           
 
Method Summary
 String closeDefinitionItem()
           
 String closeDefinitionList()
           
 String closeDefinitionTitle()
           
 String closeDiv()
           
 String closeList(char bullet)
           
 String closeListItem()
           
 String closeParagraph()
           
 String closePreformatted()
           
 String closeSpan()
           
 String closeTable()
           
 String closeTableHeading()
           
 String closeTableItem()
           
 String closeTableRow()
           
 String closeTextEffect(int effect)
           
 void doChar(StringBuffer buf, char ch)
           
 String lineBreak(boolean clear)
           
 String makeError(String error)
          Writes HTML for error message.
 String makeHeading(int level, String title, Heading hd)
          Returns XHTML for the start of the heading.
 String makeLink(int type, String link, String text)
          Write a HTMLized link depending on its type.
 String makeLink(int type, String link, String text, String section)
           
 String makeRuler()
          Emits a vertical line.
 String openDefinitionItem()
           
 String openDefinitionList()
           
 String openDefinitionTitle()
           
 String openDiv(String style, String clazz)
           
 String openList(char bullet)
           
 String openListItem()
           
 String openParagraph()
           
 String openPreformatted(boolean isBlock)
           
 String openSpan(String style, String clazz)
           
 String openTable()
           
 String openTableHeading()
           
 String openTableItem()
           
 String openTableRow()
           
 String openTextEffect(int effect)
          Writes out a text effect
 String outlinkImage()
          If outlink images are turned on, returns a link to the outward linking image.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TranslatorReader.TextRenderer

public TranslatorReader.TextRenderer()
Method Detail

doChar

public void doChar(StringBuffer buf,
                   char ch)

openDiv

public String openDiv(String style,
                      String clazz)

closeDiv

public String closeDiv()

openSpan

public String openSpan(String style,
                       String clazz)

closeSpan

public String closeSpan()

openParagraph

public String openParagraph()

closeParagraph

public String closeParagraph()

openTextEffect

public String openTextEffect(int effect)
Writes out a text effect


closeTextEffect

public String closeTextEffect(int effect)

openDefinitionItem

public String openDefinitionItem()

closeDefinitionItem

public String closeDefinitionItem()

openDefinitionTitle

public String openDefinitionTitle()

closeDefinitionTitle

public String closeDefinitionTitle()

openDefinitionList

public String openDefinitionList()

closeDefinitionList

public String closeDefinitionList()

makeLink

public String makeLink(int type,
                       String link,
                       String text)
Write a HTMLized link depending on its type.

This jsut calls makeLink() with "section" set to null.


makeLink

public String makeLink(int type,
                       String link,
                       String text,
                       String section)

makeError

public String makeError(String error)
Writes HTML for error message.


makeRuler

public String makeRuler()
Emits a vertical line.


makeHeading

public String makeHeading(int level,
                          String title,
                          Heading hd)
Returns XHTML for the start of the heading. Also sets the line-end emitter.

Parameters:
level -

openList

public String openList(char bullet)
Parameters:
bullet - A character detailing which kind of a list we are dealing with here. Options are '#' and '*'.

openListItem

public String openListItem()

closeListItem

public String closeListItem()

closeList

public String closeList(char bullet)
Parameters:
bullet - A character detailing which kind of a list we are dealing with here. Options are '#' and '*'.

openTable

public String openTable()

closeTable

public String closeTable()

openTableRow

public String openTableRow()

closeTableRow

public String closeTableRow()

openTableItem

public String openTableItem()

closeTableItem

public String closeTableItem()

openTableHeading

public String openTableHeading()

closeTableHeading

public String closeTableHeading()

openPreformatted

public String openPreformatted(boolean isBlock)

closePreformatted

public String closePreformatted()

outlinkImage

public String outlinkImage()
If outlink images are turned on, returns a link to the outward linking image.


lineBreak

public String lineBreak(boolean clear)
Parameters:
clear - If true, then flushes all thingies.