ilog.ds.gantt
Class ResourceEvent
java.lang.Object
|
+--java.util.EventObject
|
+--ilog.ds.AbstractDSEvent
|
+--ilog.ds.gantt.ResourceEvent
- All Implemented Interfaces:
- java.io.Serializable
- public class ResourceEvent
- extends AbstractDSEvent
Event class used for all events happening on a gantt resource.
- See Also:
- Serialized Form
|
Field Summary |
protected java.lang.Object |
_parent
|
protected java.lang.Object |
_resource
|
static int |
ROOT
|
| Fields inherited from class java.util.EventObject |
source |
|
Constructor Summary |
ResourceEvent(java.lang.Object source,
java.lang.Object resource)
Constructor to use when the resource is being deleted. |
ResourceEvent(java.lang.Object source,
java.lang.Object rootResource,
int type)
Constructor to use for gantt activity root definition |
ResourceEvent(java.lang.Object source,
java.lang.Object resource,
java.util.Map properties)
Constructor to use for updating resources. |
ResourceEvent(java.lang.Object source,
java.lang.Object parent,
java.lang.Object resource,
java.util.Map properties)
Constructor to use for creating resources. |
|
Method Summary |
java.lang.Object |
getParent()
Gets the parent resource, only useful for creation. |
java.lang.Object |
getResource()
Gets the resource (to be used only as a key). |
| 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
_resource
protected java.lang.Object _resource
ResourceEvent
public ResourceEvent(java.lang.Object source,
java.lang.Object rootResource,
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.
ResourceEvent
public ResourceEvent(java.lang.Object source,
java.lang.Object parent,
java.lang.Object resource,
java.util.Map properties)
- Constructor to use for creating resources.
- Parameters:
source - The first parameter is the source of the event.parent - The owner of the resource.activity - The resource itself. Can be anything, as it is only used as a
key.properties - It contains the named properties of the resource, that is, all
the properties when the resource is created.
ResourceEvent
public ResourceEvent(java.lang.Object source,
java.lang.Object resource,
java.util.Map properties)
- Constructor to use for updating resources.
- Parameters:
source - The first parameter is the source of the event.activity - The resource itself. Can be anything, as it is only used as a
key.properties - Contains the named properties of the resource, that is, all
the modified resource.
ResourceEvent
public ResourceEvent(java.lang.Object source,
java.lang.Object resource)
- Constructor to use when the resource is being deleted.
getResource
public java.lang.Object getResource()
- Gets the resource (to be used only as a key).
- Returns:
- the subject of this event
getParent
public java.lang.Object getParent()
- Gets the parent resource, only useful for creation.
- Returns:
- the parent of the subject of this event