public abstract class InsertTextMode extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static InsertTextMode |
BREAK
Mode where each line (after the first) is preceded by a <br> tag.
|
static InsertTextMode |
PARAGRAPH
Mode where each line is wrapped with a <p> element.
|
Modifier | Constructor and Description |
---|---|
protected |
InsertTextMode(java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
toString() |
abstract void |
writeLine(int lineNumber,
java.lang.String line,
IMarkupWriter writer,
boolean raw)
Invoked by the
InsertText component to write the next line. |
public static final InsertTextMode BREAK
public static final InsertTextMode PARAGRAPH
protected InsertTextMode(java.lang.String name)
public java.lang.String toString()
toString
in class java.lang.Object
public abstract void writeLine(int lineNumber, java.lang.String line, IMarkupWriter writer, boolean raw)
InsertText
component to write the next line.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.raw
- if true, then the output should be unfiltered