com.dlsc.flexgantt.swing.layer.timeline

## Class TimelineObjectSelectionEvent

- java.lang.Object
- - java.util.EventObject
  - - com.dlsc.flexgantt.swing.layer.timeline.TimelineObjectSelectionEvent

- All Implemented Interfaces:
    Serializable

      public class TimelineObjectSelectionEvent
      extends EventObject

  An event object used for informing listeners attached to an instance of `ITimelineObjectSelectionModel`.
  Since:
    1.0
  Version:
    $Revision: 1.7 $
  Author:
    Dirk Lemmermann
  See Also:
    `ITimelineObjectSelectionModel.addTimelineObjectSelectionModelListener(ITimelineObjectSelectionListener)`, `LayerContainer.getSelectionModel(com.dlsc.flexgantt.model.gantt.ILayer)`, Serialized Form

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Class and Description
    --- | ---
    `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

    Constructors
    Constructor and Description
    `TimelineObjectSelectionEvent(ITimelineObjectSelectionModel model, TimelineObjectSelectionEvent.ID id, List<TimelineObjectPath> paths)` Constructs a new selection event.

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `TimelineObjectSelectionEvent.ID` | `getId()` Returns the type of event that took place.
    `List<TimelineObjectPath>` | `getTimelineObjectPaths()` Returns the added / removed timeline objects.
    `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(ITimelineObjectSelectionModel model,
                                              TimelineObjectSelectionEvent.ID id,
                                              List<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 List<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 String toString()

      Overrides:
        `toString` in class `EventObject`

Copyright © 2006–2020 Dirk Lemmermann Software & Consulting. All rights reserved.