public final class Utilities extends Object
Modifier and Type | Method and Description |
---|---|
static String |
convertToHTMLString(String text)
Converts the string
text to an HTML string, i.e. the string is surrounded with
an <html>-tag and all line breaks are replaced by <br>-tags. |
static int |
showConfirmDialog(Component parent,
String titleKey,
String messageKey,
String... parameter)
Brings up a message dialog showing a information message.
|
static void |
showErrorMessage(Component parent,
String titleKey,
String messageKey,
String... parameter)
Brings up a message dialog showing a error message.
|
static void |
showInformationMessage(Component parent,
String titleKey,
String messageKey,
String... parameter)
Brings up a message dialog showing a information message.
|
static void |
showWarningMessage(Component parent,
String titleKey,
String messageKey,
String... parameter)
Brings up a message dialog showing a warning message.
|
public static String convertToHTMLString(String text)
text
to an HTML string, i.e. the string is surrounded with
an <html>-tag and all line breaks are replaced by <br>-tags.text
- the string which is to be convertedpublic static void showWarningMessage(Component parent, String titleKey, String messageKey, String... parameter)
parent
- the parent component on whose frame the message dialog will be displayedtitleKey
- the key indicating the title stringmessageKey
- the key indicating the message stringparameter
- additional parameter for the message stringpublic static void showErrorMessage(Component parent, String titleKey, String messageKey, String... parameter)
parent
- the parent component on whose frame the message dialog will be displayedtitleKey
- the key indicating the title stringmessageKey
- the key indicating the message stringparameter
- additional parameter for the message stringpublic static void showInformationMessage(Component parent, String titleKey, String messageKey, String... parameter)
parent
- the parent component on whose frame the message dialog will be displayedtitleKey
- the key indicating the title stringmessageKey
- the key indicating the message stringparameter
- additional parameter for the message stringpublic static int showConfirmDialog(Component parent, String titleKey, String messageKey, String... parameter)
parent
- the parent component on whose frame the message dialog will be displayedtitleKey
- the key indicating the title stringmessageKey
- the key indicating the message stringparameter
- additional parameter for the message string