java.lang.Object
com.lutris.html.HtmlString
- All Implemented Interfaces:
- java.io.Serializable
- public class HtmlString
- extends java.lang.Object
- implements java.io.Serializable
The HtmlString class contains a String and adds a
toHtml() method. It is intended to be used in Jolt presentations
and referenced through JoltFields. The presence of the toHtml()
method prevents the default behavour of HTML encoding
the string contents to take place.
- Since:
- LBS1.8
- Version:
- 1.0 (File $Revision: 1.7.12.1 $)
|
Constructor Summary |
HtmlString(java.lang.String value)
Allocates a new string that contains the same sequence of
characters as the string argument. |
HtmlString(java.lang.StringBuffer buffer)
Allocates a new String that contains the same sequence
characters contained in the string buffer argument. |
value
private java.lang.String value
- The contained string.
HtmlString
public HtmlString(java.lang.String value)
- Allocates a new string that contains the same sequence of
characters as the string argument.
HtmlString
public HtmlString(java.lang.StringBuffer buffer)
- Allocates a new
String that contains the same sequence
characters contained in the string buffer argument.
toString
public java.lang.String toString()
- Returns the contained
String object.
toHtml
public java.lang.String toHtml()
- Returns the contained
String object.