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

Field Summary
protected  Object _element
           
 
Fields inherited from class ilog.ds.AbstractDSEvent
_properties, _type, ADD, REMOVE, UPDATE
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ElementEvent(Object source, Object element)
          Constructor to use when the element is being deleted.
ElementEvent(Object source, Object element, int type, Map properties)
          Constructor to use for creating or updating elements.
 
Method Summary
 Object getElement()
          Gets the element (to be used only as a key).
 
Methods inherited from class ilog.ds.AbstractDSEvent
getProperties, getType
 
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
 

Field Detail

_element

protected Object _element
Constructor Detail

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.
Method Detail

getElement

public Object getElement()
Gets the element (to be used only as a key).
Returns:
the subject of this event