com.dlsc.flexgantt.swing.layer.timeline
Class TimelineObjectSelectionEvent

java.lang.Object
  extended by java.util.EventObject
      extended by com.dlsc.flexgantt.swing.layer.timeline.TimelineObjectSelectionEvent
All Implemented Interfaces:
java.io.Serializable

public class TimelineObjectSelectionEvent
extends java.util.EventObject

An event object used for informing listeners attached to an instance of ITimelineObjectLayerSelectionModel.

Since:
1.0
Author:
Dirk Lemmermann
See Also:
ITimelineObjectLayerSelectionModel.addTimelineLayerSelectionModelListener(ITimelineObjectLayerSelectionListener), LayerContainer.getSelectionModel(com.dlsc.flexgantt.model.gantt.ILayer), Serialized Form

Nested Class Summary
static class TimelineObjectSelectionEvent.ID
          An event identifier used for distinguishing between different types of events (added objects, removed objects).
 
Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
TimelineObjectSelectionEvent(ITimelineObjectLayerSelectionModel model, TimelineObjectSelectionEvent.ID id, java.util.Collection<TimelineObjectPath> paths)
          Constructs a new selection event.
 
Method Summary
 TimelineObjectSelectionEvent.ID getId()
          Returns the type of event that took place.
 java.util.Collection<TimelineObjectPath> getTimelineObjectPaths()
          Returns the added / removed timeline objects.
 java.lang.String toString()
           
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TimelineObjectSelectionEvent

public TimelineObjectSelectionEvent(ITimelineObjectLayerSelectionModel model,
                                    TimelineObjectSelectionEvent.ID id,
                                    java.util.Collection<TimelineObjectPath> paths)
Constructs a new selection event.

Parameters:
model - the source of the change
id - the type of event
paths - the added / removed timeline objects
Since:
1.0
Method Detail

getTimelineObjectPaths

public java.util.Collection<TimelineObjectPath> getTimelineObjectPaths()
Returns the added / removed timeline objects.

Returns:
the added or removed timeline objects
Since:
1.0

getId

public TimelineObjectSelectionEvent.ID getId()
Returns the type of event that took place.

Returns:
the event ID
Since:
1.0

toString

public java.lang.String toString()
Overrides:
toString in class java.util.EventObject