public class MessageText
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
TYPE_HTML |
static int |
TYPE_PLAIN |
Constructor and Description |
---|
MessageText() |
MessageText(java.lang.String text) |
Modifier and Type | Method and Description |
---|---|
void |
addNewLine()
NOTE: The newline is based upon the type.
|
void |
addText(java.lang.String text) |
void |
clear() |
java.lang.String |
getText() |
java.lang.String |
getType() |
static MessageText |
htmlMessage(java.lang.String message) |
boolean |
isEmpty() |
boolean |
isTypeHtml() |
boolean |
isTypeTextPlain() |
static MessageText |
plainTextMessage(java.lang.String message) |
int |
size() |
java.lang.String |
toString() |
public static final int TYPE_PLAIN
public static final int TYPE_HTML
public MessageText()
public MessageText(java.lang.String text)
public void addText(java.lang.String text)
public void clear()
public int size()
public boolean isEmpty()
public void addNewLine()
public java.lang.String getType()
public java.lang.String getText()
public boolean isTypeTextPlain()
public boolean isTypeHtml()
public static MessageText htmlMessage(java.lang.String message)
public static MessageText plainTextMessage(java.lang.String message)
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © Technia AB. All Rights Reserved.