abbot.editor
Class TextFormat
java.lang.Object
|
+--abbot.editor.TextFormat
- public class TextFormat
- extends Object
Provides text formatting utilities.
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 |
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 |
TOOLTIP_WRAP
public static final int TOOLTIP_WRAP
DIALOG_WRAP
public static final int DIALOG_WRAP
TextFormat
public TextFormat()
wordWrap
public static String wordWrap(String msg,
int wrapAt,
String lineSep)
- Wrap the given text at the given number of characters per line.
tooltip
public static String tooltip(String tip)
- Emit html, suitably line-wrapped and formatted for a tool tip.
dialog
public static String dialog(String msg)
- Emit html, suitably line-wrapped and formatted for a dialog.
Copyright © 2002-2003 Timothy Wall. All Rights Reserved.
Abbot is hosted on