ru.biosoft.access
Class DataCollectionEvent
java.lang.Object
|
+--java.util.EventObject
|
+--ru.biosoft.access.DataCollectionEvent
- public class DataCollectionEvent
- extends EventObject
Implements event change in a collection .
| Field Summary |
final static int | ELEMENT_ADDED Indicates, that in a collection the new element was added. |
final static int | ELEMENT_CHANGED Indicates, that the element of a collection was modified. |
final static int | ELEMENT_REMOVED Indicates, that the element of a collection was removed |
| Methods inherited from class java.util.EventObject |
getSource, toString |
| Methods inherited from class java.lang.Object |
getClass, hashCode, equals, notify, notifyAll, wait, wait, wait |
ELEMENT_ADDED
public final static int ELEMENT_ADDED
- Indicates, that in a collection the new element was added.
ELEMENT_CHANGED
public final static int ELEMENT_CHANGED
- Indicates, that the element of a collection was modified.
ELEMENT_REMOVED
public final static int ELEMENT_REMOVED
- Indicates, that the element of a collection was removed
DataCollectionEvent
public DataCollectionEvent(Object source, int type, DataElement dataElement, DataCollectionEvent primaryEvent)
- Constructs the DataCollectionEvent object.
- Parameters:
- source - The source which has caused events
- type
- dataElement
changed,removed - or added element
getDataElement
public DataElement getDataElement()
- Gets a data element, which was added,modified or removed.
- Returns: data element
getPrimaryEvent
public DataCollectionEvent getPrimaryEvent()
- todo comment
getType
public int getType()
- Gets the type of event. Possible values:
- Returns: type of event
to Class ru.biosoft.access.DataElement
to Class ru.biosoft.access.DataCollectionEvent
BOTTOM