com.dlsc.flexgantt.swing
Class TimelineObjectPathMessage

java.lang.Object
  extended by com.dlsc.flexgantt.swing.Message
      extended by com.dlsc.flexgantt.swing.TimelineObjectPathMessage
All Implemented Interfaces:
IMessage, ITimelineObjectPathMessage

public class TimelineObjectPathMessage
extends Message
implements ITimelineObjectPathMessage

A timeline object message is used when the application wants to display a message to the user that is somehow related to a single timeline object. The timeline object might cause some scheduling constraint violations and the application requests from the user to perform scheduling actions.

Since:
1.0
Author:
Dirk Lemmermann
See Also:
Message, TreePathMessage

Constructor Summary
TimelineObjectPathMessage(MessageTypeId id, java.lang.String text, java.util.Date time, TimelineObjectPath path)
          Constructs a new message.
TimelineObjectPathMessage(MessageTypeId id, java.lang.String text, java.lang.Object details, java.util.Date time, TimelineObjectPath path)
          Constructs a new message.
TimelineObjectPathMessage(MessageTypeId id, java.lang.String text, java.lang.Object details, TimelineObjectPath path)
          Constructs a new message.
TimelineObjectPathMessage(MessageTypeId id, java.lang.String text, TimelineObjectPath path)
          Constructs a new message.
TimelineObjectPathMessage(java.lang.String text, java.lang.Object details, TimelineObjectPath path)
          Constructs a new error message.
TimelineObjectPathMessage(java.lang.String text, TimelineObjectPath path)
          Constructs a new information message.
 
Method Summary
 TimelineObjectPath getTimelineObjectPath()
          A path to the timeline object.
 
Methods inherited from class com.dlsc.flexgantt.swing.Message
getMessageDetails, getMessageText, getMessageTime, getMessageTypeId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.dlsc.flexgantt.swing.IMessage
getMessageDetails, getMessageText, getMessageTime, getMessageTypeId
 

Constructor Detail

TimelineObjectPathMessage

public TimelineObjectPathMessage(MessageTypeId id,
                                 java.lang.String text,
                                 java.lang.Object details,
                                 java.util.Date time,
                                 TimelineObjectPath path)
Constructs a new message.

Parameters:
id - a message type identifier used to distinguish between plain information messages or warning and error messages
text - the message that will be shown to the user
details - an object storing additional information about the cause of the message
time - a message time stamp
path - a timeline object path to the tree node and the timeline object
Since:
1.0
See Also:
Message, TreePathMessage

TimelineObjectPathMessage

public TimelineObjectPathMessage(MessageTypeId id,
                                 java.lang.String text,
                                 java.util.Date time,
                                 TimelineObjectPath path)
Constructs a new message.

Parameters:
id - a message type identifier used to distinguish between plain information messages or warning and error messages
text - the message that will be shown to the user
time - a message time stamp
path - a timeline object path to the tree node and the timeline object
Since:
1.0
See Also:
Message, TreePathMessage

TimelineObjectPathMessage

public TimelineObjectPathMessage(MessageTypeId id,
                                 java.lang.String text,
                                 java.lang.Object details,
                                 TimelineObjectPath path)
Constructs a new message.

Parameters:
id - a message type identifier used to distinguish between plain information messages or warning and error messages
text - the message that will be shown to the user
details - an object storing additional information about the cause of the message
path - a timeline object path to the tree node and the timeline object
Since:
1.0
See Also:
Message, TreePathMessage

TimelineObjectPathMessage

public TimelineObjectPathMessage(MessageTypeId id,
                                 java.lang.String text,
                                 TimelineObjectPath path)
Constructs a new message.

Parameters:
id - a message type identifier used to distinguish between plain information messages or warning and error messages
text - the message that will be shown to the user
path - a timeline object path to the tree node and the timeline object
Since:
1.0
See Also:
Message, TreePathMessage

TimelineObjectPathMessage

public TimelineObjectPathMessage(java.lang.String text,
                                 java.lang.Object details,
                                 TimelineObjectPath path)
Constructs a new error message.

Parameters:
text - the message that will be shown to the user
details - an object storing additional information about the cause of the message
path - a timeline object path to the tree node and the timeline object
Since:
1.0
See Also:
Message, TreePathMessage

TimelineObjectPathMessage

public TimelineObjectPathMessage(java.lang.String text,
                                 TimelineObjectPath path)
Constructs a new information message.

Parameters:
text - the message that will be shown to the user
path - a tree path to the tree node to which the timeline object belongs
Since:
1.0
See Also:
Message, TreePathMessage
Method Detail

getTimelineObjectPath

public TimelineObjectPath getTimelineObjectPath()
Description copied from interface: ITimelineObjectPathMessage
A path to the timeline object.

Specified by:
getTimelineObjectPath in interface ITimelineObjectPathMessage
Returns:
the referenced timeline object