|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.ivata.mask.web.format.LineBreakFormat
Convert line breaks into HTML break tags.
| Constructor Summary | |
LineBreakFormat()
|
|
| Method Summary | |
java.lang.String |
format(java.lang.String hTMLTextParam)
Convert all line breaks in the text provided to <br/> tags, and prepend a string to new each line. |
boolean |
getConvertLineBreaks()
Get whether or not we should convert line breaks. |
java.lang.String |
getPrepend()
Get the string which is prepended to each new line. |
void |
setConvertLineBreaks(boolean convertLineBreaksParam)
Set whether or not we should convert line breaks. |
void |
setPrepend(java.lang.String prependParam)
Set the string which is prepended to each new line. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public LineBreakFormat()
| Method Detail |
public final java.lang.String format(java.lang.String hTMLTextParam)
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 >
format in interface HTMLFormathTMLTextParam - HTML text to convert line breaks in.
public final java.lang.String getPrepend()
Get the string which is prepended to each new line.
public final void setPrepend(java.lang.String prependParam)
Set the string which is prepended to each new line.
prependParam - the new value of the string to prepend to each line.public final boolean getConvertLineBreaks()
Get whether or not we should convert line breaks. If set to
true, then all line break characters in the
htmText (see format) are converted into
HTML line-breaks (<br/>).
true if line breaks are converted, otherwise
false.public final void setConvertLineBreaks(boolean convertLineBreaksParam)
Set whether or not we should convert line breaks. If set to
true, then all line break characters in the
hTMLText (see format) are converted into
HTML line-breaks (<br/>).
convertLineBreaksParam - set to true if line breaks should be converted,
otherwise false.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||