public class RichText
extends java.lang.Object
Constructor and Description |
---|
RichText(java.lang.String richtext)
creates a rich text with the given input
|
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
escapetoHTML(java.lang.String input) |
Paragraph[] |
generateAllParagraphs(boolean editable,
RichTextArea parent)
generates all paragraphes in this rich text.
|
java.lang.String |
generateHtmlString()
generates an HTML representation of this rich text
|
java.lang.String |
generatePlainString()
this method generates a plain text representation of the rich text for
display in places where rich text cannot be displayed
|
public RichText(java.lang.String richtext)
richtext
- the rich text as encodedpublic Paragraph[] generateAllParagraphs(boolean editable, RichTextArea parent)
editable
- true if editableparent
- parent rich text area (widget)public java.lang.String generatePlainString()
public java.lang.String generateHtmlString()
public static java.lang.String escapetoHTML(java.lang.String input)
input
-