|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.dlsc.flexgantt.swing.Message
public class Message
The default implementation of the IMessage
interface. Objects of this
type can contain general information, warnings, or errors. Whether a message
is either one can be determined by checking the message type ID.
TimelineObjectPathMessage
,
TreePathMessage
Constructor Summary | |
---|---|
Message(MessageTypeId id,
java.lang.String text)
Constructs a new message. |
|
Message(MessageTypeId id,
java.lang.String text,
java.util.Date time)
Constructs a new message. |
|
Message(MessageTypeId id,
java.lang.String text,
java.lang.Object details)
Constructs a new message. |
|
Message(MessageTypeId id,
java.lang.String text,
java.lang.Object details,
java.util.Date time)
Constructs a new message. |
|
Message(java.lang.String text)
Constructs a new information message. |
|
Message(java.lang.String text,
java.lang.Object details)
Constructs a new error message with some details attached to it. |
Method Summary | |
---|---|
java.lang.Object |
getMessageDetails()
Returns an object that contains some more details about the message. |
java.lang.String |
getMessageText()
Returns the text that will be displayed to the user. |
java.util.Date |
getMessageTime()
Returns the time stamp when the message occured. |
MessageTypeId |
getMessageTypeId()
Returns the type of the message (information, warning, error). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Message(MessageTypeId id, java.lang.String text, java.lang.Object details, java.util.Date time)
id
- a message type identifier used to distinguish between plain
information messages or warning and error messagestext
- the message that will be shown to the userdetails
- an object storing additional information about the cause of
the messagetime
- a message time stampTreePathMessage
,
TimelineObjectPathMessage
public Message(MessageTypeId id, java.lang.String text, java.util.Date time)
id
- a message type identifier used to distinguish between plain
information messages or warning and error messagestext
- the message that will be shown to the usertime
- a message time stampTreePathMessage
,
TimelineObjectPathMessage
public Message(MessageTypeId id, java.lang.String text, java.lang.Object details)
id
- a message type identifier used to distinguish between plain
information messages or warning and error messagestext
- the message that will be shown to the userdetails
- an object storing additional information about the cause of
the messageTreePathMessage
,
TimelineObjectPathMessage
public Message(MessageTypeId id, java.lang.String text)
id
- a message type identifier used to distinguish between plain
information messages or warning and error messagestext
- the message that will be shown to the userTreePathMessage
,
TimelineObjectPathMessage
public Message(java.lang.String text, java.lang.Object details)
text
- the message that will be shown to the userdetails
- an object storing additional information about the cause of
the messageTreePathMessage
,
TimelineObjectPathMessage
public Message(java.lang.String text)
text
- the message that will be shown to the userTreePathMessage
,
TimelineObjectPathMessage
Method Detail |
---|
public MessageTypeId getMessageTypeId()
IMessage
getMessageTypeId
in interface IMessage
public java.lang.String getMessageText()
IMessage
getMessageText
in interface IMessage
public java.lang.Object getMessageDetails()
IMessage
Throwable
. The return type is this
generic in order to support different kinds of detailed information in
the future that can not be foreseen, yet.
getMessageDetails
in interface IMessage
public java.util.Date getMessageTime()
IMessage
getMessageTime
in interface IMessage
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |