|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.levigo.util.swing.messaging.Message
public class Message
An object to hold message relevant data.
Field Summary | |
---|---|
static String |
CHOICE
|
static String |
CONFIRM
|
static String |
DISPLAY
|
static String |
ERROR
|
static String |
HIDDEN_INPUT
|
static String |
INFO
|
static String |
INPUT
|
static String |
NO
|
static String |
NOTICE
|
static String |
WARNING
|
static String |
YES
|
Constructor Summary | |
---|---|
Message(String id,
String type,
String severity,
String title,
String body,
String details,
String description,
Throwable e,
String[] controlTexts,
boolean isSuppressable,
boolean isSuppressed)
Constructor |
|
Message(String id,
String type,
String severity,
String title,
String body,
String details,
String description,
Throwable e,
String[] controlTexts,
String[] controlMnemonics,
boolean isSuppressable,
boolean isSuppressed)
Constructor |
|
Message(String id,
String type,
String severity,
String title,
String body,
String details,
Throwable e,
String[] controlTexts)
Constructor |
Method Summary | |
---|---|
String |
getBodyText()
Gets the message content text, |
String[] |
getControlLabels()
Gets an array of message control labels. |
String[] |
getControlMnemonics()
Gets an array of message control mnemonics. |
String |
getDescription()
Returns the description text of a message. |
String |
getDetailsText()
Gets more detailed information belonging to the message. |
String |
getIdentifier()
Returns the messageIdentifier. |
String |
getSeverity()
|
String |
getTitleText()
Returns the title text that characterizes the message. |
String |
getType()
|
boolean |
isSuppressable()
Tells you if a message can be suppressed. |
boolean |
isSuppressed()
Tells you if a message is suppressed. |
void |
setBodyText(String bodyText)
Sets the bodyText. |
void |
setControlLabels(String[] controlLabels)
Sets the controlLabels. |
void |
setDetailsText(String detailsText)
Sets more detailed information belonging to the message |
void |
setException(Throwable e)
Sets the exception held by this message. |
void |
setIdentifier(String messageIdentifier)
Sets the messageIdentifier. |
void |
setSeverity(String severity)
|
void |
setTitleText(String titleText)
Sets the title of the message. |
void |
setType(String type)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String DISPLAY
public static final String CONFIRM
public static final String CHOICE
public static final String INPUT
public static final String HIDDEN_INPUT
public static final String NOTICE
public static final String INFO
public static final String WARNING
public static final String ERROR
public static final String NO
public static final String YES
Constructor Detail |
---|
public Message(String id, String type, String severity, String title, String body, String details, Throwable e, String[] controlTexts)
id
- The key that identifies this messagetype
- The type of the message. One of CHOICE, CONFIRM, DISPLAY, INPUTseverity
- The severity of the message. One of INFO, WARNING, ERROR.title
- the title of the messagebody
- the message bodydetails
- an additional, more detailed message texte
- An exception that can be held by this messagecontrolTexts
- an array with the control labels of the displayed message at position 0
confirm button name e.g. "OK", at position 1 cancel button name e.g. "CANCEL"public Message(String id, String type, String severity, String title, String body, String details, String description, Throwable e, String[] controlTexts, boolean isSuppressable, boolean isSuppressed)
id
- The key that identifies this messagetype
- The type of the message. One of CHOICE, CONFIRM, DISPLAY, INPUTseverity
- The severity of the message. One of INFO, WARNING, ERROR.title
- the title of the messagebody
- the message bodydetails
- an additional, more detailed message texte
- An exception that can be held by this messagecontrolTexts
- an array with the control labels of the displayed message at position 0
confirm button name e.g. "OK", at position 1 cancel button name e.g. "CANCEL"public Message(String id, String type, String severity, String title, String body, String details, String description, Throwable e, String[] controlTexts, String[] controlMnemonics, boolean isSuppressable, boolean isSuppressed)
id
- The key that identifies this messagetype
- The type of the message. One of CHOICE, CONFIRM, DISPLAY, INPUTseverity
- The severity of the message. One of INFO, WARNING, ERROR.title
- the title of the messagebody
- the message bodydetails
- an additional, more detailed message texte
- An exception that can be held by this messagecontrolTexts
- an array with the control labels of the displayed message at position 0
confirm button name e.g. "OK", at position 1 cancel button name e.g. "CANCEL"controlMnemonics
- an array with mnemonics for the control labels of the displayed message
at position 0 confirm button mnemonic e.g. "O" for the "OK"-Button, at position 1
confirm button mnemonic e.g. "N" for the "NO"-Button, etc.isSuppressable
- flag indicating whether the message is suppressableisSuppressed
- flag indicating whether the message is suppressedMethod Detail |
---|
public String getBodyText()
public String[] getControlLabels()
public String[] getControlMnemonics()
public String getDetailsText()
public String getTitleText()
public String getDescription()
public void setBodyText(String bodyText)
bodyText
- The bodyText to setpublic void setControlLabels(String[] controlLabels)
controlLabels
- The controlLabels to setpublic void setDetailsText(String detailsText)
detailsText
- The detailsText to setpublic void setTitleText(String titleText)
titleText
- The titleText to setpublic String getType()
public String getSeverity()
public void setType(String type)
public void setSeverity(String severity)
public String getIdentifier()
public void setIdentifier(String messageIdentifier)
messageIdentifier
- The messageIdentifier to setpublic void setException(Throwable e)
null
here.
e
- The exception to be held by the messagepublic boolean isSuppressable()
public boolean isSuppressed()
public String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |