com.dlsc.flexgantt.swing.layer.timeline
Class TimelineObjectSelectionEvent
java.lang.Object
java.util.EventObject
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). |
Fields inherited from class java.util.EventObject |
source |
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 |
TimelineObjectSelectionEvent
public TimelineObjectSelectionEvent(ITimelineObjectLayerSelectionModel model,
TimelineObjectSelectionEvent.ID id,
java.util.Collection<TimelineObjectPath> paths)
- Constructs a new selection event.
- Parameters:
model
- the source of the changeid
- the type of eventpaths
- the added / removed timeline objects- Since:
- 1.0
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