com.dlsc.flexgantt.swing.layer

## Class LayerContainerEvent

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

- All Implemented Interfaces:
    Serializable

      public class LayerContainerEvent
      extends EventObject

  An event object used by the `LayerContainer` to inform its listeners when changes have occured.
  Since:
    1.0
  Version:
    $Revision: 1.3 $
  Author:
    Dirk Lemmermann
  See Also:
    `ILayerContainerListener`, `LayerContainer.addLayerContainerListener(ILayerContainerListener)`, Serialized Form

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Class and Description
    --- | ---
    `static class` | `LayerContainerEvent.ID` An ID enumerator used to distinguish between different types of events.

  - ### Field Summary

    - ### Fields inherited from class java.util.EventObject

      `source`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `LayerContainerEvent(LayerContainer lc, LayerContainerEvent.ID id)` Constructs a new layer event.

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `LayerContainerEvent.ID` | `getId()` Returns the event identifier that can be used to distinguish different types of events.
    `LayerContainer` | `getLayerContainer()` Returns the layer container where the event occured (the source of the event).

    - ### Methods inherited from class java.util.EventObject

      `getSource, toString`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### LayerContainerEvent

          public LayerContainerEvent(LayerContainer lc,
                                     LayerContainerEvent.ID id)

      Constructs a new layer event.
      Parameters:
        `lc` - the layer container where the event occured (the source)
        `id` - an identifier used to distinguish different types of events
      Since:
        1.0

  - ### Method Detail

    - #### getLayerContainer

          public LayerContainer getLayerContainer()

      Returns the layer container where the event occured (the source of the event).
      Returns:
        the layer container that caused the event
      Since:
        1.0

    - #### getId

          public LayerContainerEvent.ID getId()

      Returns the event identifier that can be used to distinguish different types of events.
      Returns:
        the event identifier
      Since:
        1.0

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