org.ocd.dcf.event
Class DCContainerEvent
java.lang.Object
|
+--java.util.EventObject
|
+--org.ocd.dcf.event.DCContainerEvent
- All Implemented Interfaces:
- java.io.Serializable
- public class DCContainerEvent
- extends java.util.EventObject
- Version:
-
- Author:
- drichan
- See Also:
- Serialized Form
Fields inherited from class java.util.EventObject |
source |
Constructor Summary |
DCContainerEvent(DCContainer source,
int pEventID,
java.lang.Object pObject,
java.lang.String pObjectID,
int pIndex)
|
Method Summary |
DCContainer |
getContainer()
Get the Container that fired this Event |
int |
getEventID()
Get the ID of this Event |
java.lang.Object |
getManagedObject()
Get the Managed Object that was removed or Added |
java.lang.String |
getObjectID()
Get the Object ID of the object that was added or removed |
int |
getObjectIndex()
Get the Object index of the object that was added or removed |
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 |
COMPONENT_ADDED
public static final int COMPONENT_ADDED
- Component Added Event Type
COMPONENT_REMOVED
public static final int COMPONENT_REMOVED
- Component Removed Event Type
DCContainerEvent
public DCContainerEvent(DCContainer source,
int pEventID,
java.lang.Object pObject,
java.lang.String pObjectID,
int pIndex)
- Parameters:
source
- Container that fired the eventpID
- of the Event (COMPONENT_ADDED, COMPONENT_REMOVED)pObject
- managed Object that was added or removed
getEventID
public int getEventID()
- Get the ID of this Event
- Returns:
- COMPONENT_ADDED, COMPONENT_REMOVED
getObjectID
public java.lang.String getObjectID()
- Get the Object ID of the object that was added or removed
- Returns:
- COMPONENT_ADDED, COMPONENT_REMOVED
getObjectIndex
public int getObjectIndex()
- Get the Object index of the object that was added or removed
- Returns:
- COMPONENT_ADDED, COMPONENT_REMOVED
getContainer
public DCContainer getContainer()
- Get the Container that fired this Event
getManagedObject
public java.lang.Object getManagedObject()
- Get the Managed Object that was removed or Added