|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.tapestry.components.InsertMode
public abstract class InsertMode
Defines a number of ways to format multi-line text for proper renderring.
Implementation taken from the now deprecated InsertTextMode class.
| Field Summary | |
|---|---|
protected String |
_name
|
static InsertMode |
BREAK
Mode where each line (after the first) is preceded by a <br> tag. |
static InsertMode |
PARAGRAPH
Mode where each line is wrapped with a <p> element. |
| Constructor Summary | |
|---|---|
protected |
InsertMode(String name)
Creates a new instance with a name. |
| Method Summary | |
|---|---|
String |
toString()
|
abstract void |
writeLine(int lineNumber,
String line,
IMarkupWriter writer,
boolean raw)
Invoked by the Insert component to write the next line. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final InsertMode BREAK
public static final InsertMode PARAGRAPH
protected final String _name
| Constructor Detail |
|---|
protected InsertMode(String name)
name - Textual description of the mode.| Method Detail |
|---|
public String toString()
toString in class Object
public abstract void writeLine(int lineNumber,
String line,
IMarkupWriter writer,
boolean raw)
Insert 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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||