public class TextUtils extends Object
textUtils
.Constructor | Description |
---|---|
TextUtils() |
Modifier and Type | Method | Description |
---|---|---|
static void |
copyHtmlToClipboard(String html) |
Shortcut for scripting: Copies
html with mimetype text/html to the system clipboard. |
static void |
copyToClipboard(String string) |
Shortcut for scripting: Copies
string to the system clipboard. |
static org.freeplane.core.resources.TranslatedObject |
createTranslatedString(String key) |
|
static String |
format(String resourceKey,
Object... messageArguments) |
|
SimpleDateFormat |
getDefaultDateFormat() |
accessor for scripts.
|
SimpleDateFormat |
getDefaultDateTimeFormat() |
accessor for scripts.
|
DecimalFormat |
getDefaultNumberFormat() |
accessor for scripts.
|
static String |
getOptionalText(String string) |
|
static String |
getOptionalText(String string,
String defaultValue) |
|
static String |
getOptionalTranslation(String text) |
|
static String |
getOriginalRawText(String key) |
|
static String |
getRawText(String key) |
|
static String |
getRawText(String key,
String defaultString) |
|
static String |
getText(String key) |
|
static String |
getText(String key,
String defaultString) |
|
static boolean |
isEmpty(String str) |
|
static boolean |
isNumber(String text) |
|
static boolean |
matchUriPattern(String text) |
in opposite to the URI make scheme mandatory.
|
static String |
removeMnemonic(String rawLabel) |
|
static String |
removeTranslateComment(String inputString) |
Removes the "TranslateMe" sign from the end of not translated texts.
|
static Number |
toNumber(String text) |
public static String removeTranslateComment(String inputString)
public static org.freeplane.core.resources.TranslatedObject createTranslatedString(String key)
public static Number toNumber(String text) throws NumberFormatException
NumberFormatException
public static boolean isNumber(String text)
public static boolean isEmpty(String str)
public static boolean matchUriPattern(String text)
public DecimalFormat getDefaultNumberFormat()
public SimpleDateFormat getDefaultDateFormat()
public SimpleDateFormat getDefaultDateTimeFormat()
public static void copyToClipboard(String string)
string
to the system clipboard.public static void copyHtmlToClipboard(String html)
html
with mimetype text/html to the system clipboard.