Package javaa.beans
Class IndexedPropertyChangeEvent
java.lang.Object
java.util.EventObject
javaa.beans.PropertyChangeEvent
javaa.beans.IndexedPropertyChangeEvent
- All Implemented Interfaces:
Serializable
A type of
PropertyChangeEvent
that indicates that an indexed property
has changed.- Since:
- 1.5
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorsConstructorDescriptionIndexedPropertyChangeEvent
(Object source, String propertyName, Object oldValue, Object newValue, int index) Creates a new property changed event with an indication of the property index. -
Method Summary
Modifier and TypeMethodDescriptionint
getIndex()
Answer the index of the property that was changed in this event.Methods inherited from class javaa.beans.PropertyChangeEvent
getNewValue, getOldValue, getPropagationId, getPropertyName, setPropagationId
Methods inherited from class java.util.EventObject
getSource, toString
-
Constructor Details
-
IndexedPropertyChangeEvent
public IndexedPropertyChangeEvent(Object source, String propertyName, Object oldValue, Object newValue, int index) Creates a new property changed event with an indication of the property index.- Parameters:
source
- the changed bean.propertyName
- the changed property, ornull
to indicate an unspecified set of the properties have changed.oldValue
- the previous value of the property, ornull
if thepropertyName
isnull
or the previous value is unknown.newValue
- the new value of the property, ornull
if thepropertyName
isnull
or the new value is unknown..index
- the index of the property.
-
-
Method Details
-
getIndex
public int getIndex()Answer the index of the property that was changed in this event.- Returns:
- The property element index.
-