com.primix.tapestry.html
Class InsertTextMode

java.lang.Object
  |
  +--com.primix.tapestry.util.Enum
        |
        +--com.primix.tapestry.html.InsertTextMode
All Implemented Interfaces:
java.io.Serializable

public abstract class InsertTextMode
extends Enum

Defines a number of ways to format multi-line text for proper renderring.

Version:
$Id: InsertTextMode.java,v 1.4 2001/05/02 14:15:16 hship Exp $
Author:
Howard Ship
See Also:
Serialized Form

Field Summary
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.
 
Constructor Summary
protected InsertTextMode(java.lang.String enumerationId)
           
 
Method Summary
abstract  void writeLine(int lineNumber, java.lang.String line, IResponseWriter writer)
          Invoked by the InsertText component to write the next line.
 
Methods inherited from class com.primix.tapestry.util.Enum
getEnumerationId, getSingleton, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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.
Constructor Detail

InsertTextMode

protected InsertTextMode(java.lang.String enumerationId)
Method Detail

writeLine

public abstract void writeLine(int lineNumber,
                               java.lang.String line,
                               IResponseWriter 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 IResponseWriter to send output to.