public final class RemarkInfo extends Object
Modifier and Type | Field and Description |
---|---|
Date |
date |
String |
editor |
static RemarkInfo |
NOT_A_REMARK_INFO |
ArrayList<RemarkInfo> |
replies |
String |
text |
Constructor and Description |
---|
RemarkInfo(String editor,
Date date,
String text,
ArrayList<RemarkInfo> replies) |
Modifier and Type | Method and Description |
---|---|
static String |
formatDate(Date date) |
static String |
getCurrentEditorId(CommandEnv env) |
static Color |
getEditorColor(String editor) |
static String |
getEditorInitials(String editor) |
static boolean |
notARemarkInfo(RemarkInfo info) |
static RemarkInfo |
parse(String spec) |
static Date |
parseDate(String spec) |
void |
quoteJSONString(String string,
StringBuilder buffer) |
static void |
setCurrentEditorId(String id) |
static void |
toHTML(String editor,
Color editorColor,
Date date,
String text,
int maxText,
int maxLineLength,
StringBuilder buffer) |
String |
toJSON() |
void |
toJSON(StringBuilder buffer) |
String |
toString() |
void |
toString(StringBuilder buffer) |
static void |
wrapHTMLLine(String line,
int maxLineLength,
StringBuilder buffer) |
public final String editor
public final Date date
public final String text
public final ArrayList<RemarkInfo> replies
public static final RemarkInfo NOT_A_REMARK_INFO
public RemarkInfo(String editor, Date date, String text, ArrayList<RemarkInfo> replies)
public static boolean notARemarkInfo(RemarkInfo info)
public static RemarkInfo parse(String spec) throws RuntimeException
RuntimeException
public void toString(StringBuilder buffer)
public String toJSON()
public void toJSON(StringBuilder buffer)
public void quoteJSONString(String string, StringBuilder buffer)
public static String getCurrentEditorId(CommandEnv env)
public static void setCurrentEditorId(String id)
public static void toHTML(String editor, Color editorColor, Date date, String text, int maxText, int maxLineLength, StringBuilder buffer)
public static void wrapHTMLLine(String line, int maxLineLength, StringBuilder buffer)