|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object abbot.editor.widgets.TextFormat
public class TextFormat
Provides text formatting utilities.
Field Summary | |
---|---|
static int |
DIALOG_WRAP
|
static int |
TOOLTIP_WRAP
|
Constructor Summary | |
---|---|
TextFormat()
|
Method Summary | |
---|---|
static String |
dialog(String msg)
Emit html, suitably line-wrapped and formatted for a dialog. |
static String |
tooltip(String tip)
Emit html, suitably line-wrapped and formatted for a tool tip. |
static String |
wordBreak(String phrase)
Turns "SomeRunTogetherWords" into "Some Run Together Words". |
static String |
wordWrap(String msg,
int wrapAt,
String lineSep)
Wrap the given text at the given number of characters per line. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int TOOLTIP_WRAP
public static final int DIALOG_WRAP
Constructor Detail |
---|
public TextFormat()
Method Detail |
---|
public static String wordBreak(String phrase)
public static String wordWrap(String msg, int wrapAt, String lineSep)
public static String tooltip(String tip)
public static String dialog(String msg)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |