ilog.ds
Class ElementEvent
java.lang.Object
|
+--java.util.EventObject
|
+--ilog.ds.AbstractDSEvent
|
+--ilog.ds.ElementEvent
- All Implemented Interfaces:
- java.io.Serializable
- public class ElementEvent
- extends AbstractDSEvent
Event class used for all events happening on a list element
- See Also:
- Serialized Form
|
Field Summary |
protected java.lang.Object |
_element
|
| Fields inherited from class java.util.EventObject |
source |
|
Constructor Summary |
ElementEvent(java.lang.Object source,
java.lang.Object element)
Constructor to use when the element is being deleted. |
ElementEvent(java.lang.Object source,
java.lang.Object element,
int type,
java.util.Map properties)
Constructor to use for creating or updating elements. |
|
Method Summary |
java.lang.Object |
getElement()
Gets the element (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 |
_element
protected java.lang.Object _element
ElementEvent
public ElementEvent(java.lang.Object source,
java.lang.Object element,
int type,
java.util.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(java.lang.Object source,
java.lang.Object element)
- Constructor to use when the element is being deleted.
getElement
public java.lang.Object getElement()
- Gets the element (to be used only as a key).
- Returns:
- the subject of this event