| java.lang.Object com.ivata.mask.web.format.LineBreakFormat
LineBreakFormat | public class LineBreakFormat implements HTMLFormat(Code) | |
Convert line breaks into HTML break tags.
since: ivata masks 0.4 (2002-06-19) author: Colin MacLeod author: colin.macleod@ivata.com version: $Revision: 1.5 $ |
Method Summary | |
final public String | format(String hTMLTextParam)
Convert all line breaks in the text provided to <br/> tags, and
prepend a string to new each line. | final public boolean | getConvertLineBreaks()
Get whether or not we should convert line breaks. | final public String | getPrepend()
Get the string which is prepended to each new line. | final public void | setConvertLineBreaks(boolean convertLineBreaksParam)
Set whether or not we should convert line breaks. | final public void | setPrepend(String prependParam)
Set the string which is prepended to each new line. |
format | final public String format(String hTMLTextParam)(Code) | |
Convert all line breaks in the text provided to <br/> tags, and
prepend a string to new each line. One example where this is required is
in'quoted' return emails, where each line is traditionally preceded by
the 'greater than' symbol >
Parameters: hTMLTextParam - HTML text to convert line breaks in. formatted text, with all of the line breaks converted to HTMLtags |
getConvertLineBreaks | final public boolean getConvertLineBreaks()(Code) | |
Get whether or not we should convert line breaks. If set to
true , then all line break characters in the
htmText (see
LineBreakFormat.format format ) are converted into
HTML line-breaks (<br/>).
true if line breaks are converted, otherwisefalse . |
getPrepend | final public String getPrepend()(Code) | |
Get the string which is prepended to each new line.
the current value of the string to prepend to each line. |
setConvertLineBreaks | final public void setConvertLineBreaks(boolean convertLineBreaksParam)(Code) | |
Set whether or not we should convert line breaks. If set to
true , then all line break characters in the
hTMLText (see
LineBreakFormat.format format ) are converted into
HTML line-breaks (<br/>).
Parameters: convertLineBreaksParam - set to true if line breaks should be converted,otherwise false . |
setPrepend | final public void setPrepend(String prependParam)(Code) | |
Set the string which is prepended to each new line.
Parameters: prependParam - the new value of the string to prepend to each line. |
|
|