ilog.ds.gantt
Class ActivityEvent
java.lang.Object
|
+--java.util.EventObject
|
+--ilog.ds.AbstractDSEvent
|
+--ilog.ds.gantt.ActivityEvent
- All Implemented Interfaces:
- java.io.Serializable
- public class ActivityEvent
- extends AbstractDSEvent
Event class used for all events happening on a gantt activity.
- See Also:
- Serialized Form
|
Field Summary |
protected java.lang.Object |
_activity
|
protected java.lang.Object |
_parent
|
static int |
ROOT
|
| Fields inherited from class java.util.EventObject |
source |
|
Constructor Summary |
ActivityEvent(java.lang.Object source,
java.lang.Object activity)
Constructor to use when the activity is being deleted. |
ActivityEvent(java.lang.Object source,
java.lang.Object rootActivity,
int type)
Constructor to use for gantt activity root definition |
ActivityEvent(java.lang.Object source,
java.lang.Object activity,
java.util.Map properties)
Constructor to use for updating activities. |
ActivityEvent(java.lang.Object source,
java.lang.Object parent,
java.lang.Object activity,
java.util.Map properties)
Constructor to use for creating activies. |
|
Method Summary |
java.lang.Object |
getActivity()
Gets the activity (to be used only as a key). |
java.lang.Object |
getParent()
Gets the parent activity, only useful for creation. |
| 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 |
ROOT
public static final int ROOT
_parent
protected java.lang.Object _parent
_activity
protected java.lang.Object _activity
ActivityEvent
public ActivityEvent(java.lang.Object source,
java.lang.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(java.lang.Object source,
java.lang.Object parent,
java.lang.Object activity,
java.util.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(java.lang.Object source,
java.lang.Object activity,
java.util.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(java.lang.Object source,
java.lang.Object activity)
- Constructor to use when the activity is being deleted.
getActivity
public java.lang.Object getActivity()
- Gets the activity (to be used only as a key).
- Returns:
- the subject of this event
getParent
public java.lang.Object getParent()
- Gets the parent activity, only useful for creation.
- Returns:
- the parent of the subject of this event