com.dlsc.flexgantt.swing.layer
Class TimeSpanSelectionEvent

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

public class TimeSpanSelectionEvent
extends java.util.EventObject

An event object thrown by the ILayerContainerSelectionModel whenever time spans have been added to or removed from the model.

Since:
1.0
Author:
Dirk Lemmermann
See Also:
ILayerContainerSelectionModelListener, Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
TimeSpanSelectionEvent(ILayerContainerSelectionModel model, java.lang.Object node, java.util.List<ITimeSpan> timeSpans)
          Constructs a new event.
 
Method Summary
 java.lang.Object getNode()
          Returns the tree table node that was the target of changed time span selection.
 java.util.List<ITimeSpan> getTimeSpans()
          Returns the added / removed time spans.
 
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

TimeSpanSelectionEvent

public TimeSpanSelectionEvent(ILayerContainerSelectionModel model,
                              java.lang.Object node,
                              java.util.List<ITimeSpan> timeSpans)
Constructs a new event.

Parameters:
model - the selection model that was modified
node - the tree table node on which time spans were added (removed)
timeSpans - the added / removed time spans
Since:
1.0
Method Detail

getNode

public java.lang.Object getNode()
Returns the tree table node that was the target of changed time span selection.

Returns:
the tree table node object
Since:
1.0

getTimeSpans

public java.util.List<ITimeSpan> getTimeSpans()
Returns the added / removed time spans.

Returns:
the added / removed time spans
Since:
1.0