ilog.ds.gantt
Class ActivityEvent

java.lang.Object
  |
  +--java.util.EventObject
        |
        +--ilog.ds.AbstractDSEvent
              |
              +--ilog.ds.gantt.ActivityEvent
All Implemented Interfaces:
Serializable

public class ActivityEvent
extends AbstractDSEvent

Event class used for all events happening on a gantt activity.

See Also:
Serialized Form

Field Summary
protected  Object _activity
           
protected  Object _parent
           
static int ROOT
           
 
Fields inherited from class ilog.ds.AbstractDSEvent
_properties, _type, ADD, REMOVE, UPDATE
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ActivityEvent(Object source, Object activity)
          Constructor to use when the activity is being deleted.
ActivityEvent(Object source, Object rootActivity, int type)
          Constructor to use for gantt activity root definition
ActivityEvent(Object source, Object activity, Map properties)
          Constructor to use for updating activities.
ActivityEvent(Object source, Object parent, Object activity, Map properties)
          Constructor to use for creating activies.
 
Method Summary
 Object getActivity()
          Gets the activity (to be used only as a key).
 Object getParent()
          Gets the parent activity, only useful for creation.
 
Methods inherited from class ilog.ds.AbstractDSEvent
getProperties, getType
 
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
 

Field Detail

ROOT

public static final int ROOT

_parent

protected Object _parent

_activity

protected Object _activity
Constructor Detail

ActivityEvent

public ActivityEvent(Object source,
                     Object rootActivity,
                     int type)
Constructor to use for gantt activity root definition
Parameters:
source - The first parameter is the source of the event.
activity - The activity itself. Can be anything, as it is only used as a key.

ActivityEvent

public ActivityEvent(Object source,
                     Object parent,
                     Object activity,
                     Map properties)
Constructor to use for creating activies.
Parameters:
source - The first parameter is the source of the event.
parent - The owner of the activity.
activity - The activity itself. Can be anything, as it is only used as a key.
properties - It contains the named properties of the activity, that is, all the properties when the activity is created.

ActivityEvent

public ActivityEvent(Object source,
                     Object activity,
                     Map properties)
Constructor to use for updating activities.
Parameters:
source - The first parameter is the source of the event.
activity - The activity itself. Can be anything, as it is only used as a key.
properties - Contains the named properties of the activity, that is, all the modified properties.

ActivityEvent

public ActivityEvent(Object source,
                     Object activity)
Constructor to use when the activity is being deleted.
Method Detail

getActivity

public Object getActivity()
Gets the activity (to be used only as a key).
Returns:
the subject of this event

getParent

public Object getParent()
Gets the parent activity, only useful for creation.
Returns:
the parent of the subject of this event