ilog.ds
Class ElementEvent
java.lang.Object
|
+--java.util.EventObject
|
+--ilog.ds.AbstractDSEvent
|
+--ilog.ds.ElementEvent
- All Implemented Interfaces:
- Serializable
- public class ElementEvent
- extends AbstractDSEvent
Event class used for all events happening on a list element
- See Also:
- Serialized Form
_element
protected Object _element
ElementEvent
public ElementEvent(Object source,
Object element,
int type,
Map properties)
- Constructor to use for creating or updating elements.
- Parameters:
source
- The first parameter is the source of the event.element
- The element itself. It can be anything, as it is only used as
a key.type
- It can be:
- ADD when the element is created;
- UPDATE if the element is being updated.
properties
- It contains the named properties of the element, that is, all
the properties when the element is created, or all the
modified properties when the element is being updated.
ElementEvent
public ElementEvent(Object source,
Object element)
- Constructor to use when the element is being deleted.
getElement
public Object getElement()
- Gets the element (to be used only as a key).
- Returns:
- the subject of this event