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
ROOT
public static final int ROOT
_parent
protected Object _parent
_activity
protected Object _activity
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.
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