org.apache.tapestry.html
Class InsertTextMode
java.lang.Object
org.apache.commons.lang.enum.Enum
org.apache.tapestry.html.InsertTextMode
- All Implemented Interfaces:
- Serializable, Comparable
public abstract class InsertTextMode
- extends org.apache.commons.lang.enum.Enum
Defines a number of ways to format multi-line text for proper
renderring.
- Version:
- $Id: InsertTextMode.java 243791 2004-02-19 17:38:13Z hlship $
- Author:
- Howard Lewis Ship
- See Also:
- Serialized Form
Methods inherited from class org.apache.commons.lang.enum.Enum |
compareTo, equals, getEnum, getEnumList, getEnumMap, getName, hashCode, iterator, readResolve, toString |
BREAK
public static final InsertTextMode BREAK
- Mode where each line (after the first) is preceded by a <br> tag.
PARAGRAPH
public static final InsertTextMode PARAGRAPH
- Mode where each line is wrapped with a <p> element.
InsertTextMode
protected InsertTextMode(String name)
writeLine
public abstract void writeLine(int lineNumber,
String line,
IMarkupWriter writer)
- Invoked by the
InsertText
component to write the next line.
- Parameters:
lineNumber
- the line number of the line, starting with 0 for the first line.line
- the String for the current line.writer
- the IMarkupWriter
to send output to.