public final class Message
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
ERROR_MESSAGE
Used for error messages.
|
static int |
INFORMATION_MESSAGE
Used for information messages.
|
int |
messageType |
static int |
PLAIN_MESSAGE
No icon is used.
|
static int |
QUESTION_MESSAGE
Used for questions.
|
java.lang.String |
text |
java.lang.String |
toolTipText |
static int |
WARNING_MESSAGE
Used for warning messages.
|
Constructor and Description |
---|
Message(java.lang.String text,
java.lang.String toolTipText,
int messageType) |
Modifier and Type | Method and Description |
---|---|
static boolean |
isLegalMessageType(int messageType) |
void |
showMessageDialog()
wird als modaler Dialog angezeigt
|
public static final int ERROR_MESSAGE
public static final int INFORMATION_MESSAGE
public static final int WARNING_MESSAGE
public static final int QUESTION_MESSAGE
public static final int PLAIN_MESSAGE
public final java.lang.String text
public final java.lang.String toolTipText
public final int messageType
public Message(java.lang.String text, java.lang.String toolTipText, int messageType)
text
- sehr kurzer String zur Anzeige auf dem StatusbartoolTipText
- mittellanger String zur Anzeige als ToolTipTextmessageType
- the type of message to be displayed:
ERROR_MESSAGE
,
INFORMATION_MESSAGE
,
WARNING_MESSAGE
,QUESTION_MESSAGE
,
or PLAIN_MESSAGE
java.lang.IllegalArgumentException
- if bad messageType13-September-2017 07:50 Deutsches Elektronen-Synchrotron DESY in der Helmholtz-Gemeinschaft