public class InstantiateResourceEvent
extends java.util.EventObject
instantiateResource event.| Constructor and Description |
|---|
InstantiateResourceEvent(java.lang.Object source,
java.lang.String classId)
Initializes a new instance of the
InstantiateResourceEvent class. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getClassId()
Gets the class identifier of the resource.
|
Resource |
getResource()
Gets the newly created resource.
|
void |
setResource(Resource value)
Sets the newly created resource.
|
public InstantiateResourceEvent(java.lang.Object source,
java.lang.String classId)
InstantiateResourceEvent class.source - The Schedule that raises this event.classId - Class identifier of the resource.public java.lang.String getClassId()
public Resource getResource()
Resource-derived class.public void setResource(Resource value)
Upon handling the ScheduleListener.instantiateResource(com.mindfusion.scheduling.model.InstantiateResourceEvent) event, you have
to create a resource of the appropriate type, as specified by getClassId(),
and assign it to this property.
value - An instance of a Resource-derived class.