com.dlsc.flexgantt.swing.layer
Class LayerContainerEvent

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

public class LayerContainerEvent
extends java.util.EventObject

An event object used by the LayerContainer to inform its listeners when changes have occured.

Since:
1.0
Author:
Dirk Lemmermann
See Also:
ILayerContainerListener, LayerContainer.addLayerContainerListener(ILayerContainerListener), Serialized Form

Nested Class Summary
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
LayerContainerEvent(LayerContainer lc, LayerContainerEvent.ID id)
          Constructs a new layer event.
 
Method Summary
 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