java.beans
Class IndexedPropertyChangeEvent
java.lang.Object
java.util.EventObject
java.beans.PropertyChangeEvent
java.beans.IndexedPropertyChangeEvent
- All Implemented Interfaces:
- Serializable
public class IndexedPropertyChangeEvent
- extends PropertyChangeEvent
This is like a PropertyChangeEvent, but also carries with it the
index of the property which changed.
- Since:
- 1.5
- See Also:
- Serialized Form
|
Method Summary |
int |
getIndex()
Return the index of the changed property. |
IndexedPropertyChangeEvent
public IndexedPropertyChangeEvent(Object source,
String name,
Object oldValue,
Object newValue,
int index)
- Create a new IndexedPropertyChangeEvent.
- Parameters:
source - the Bean containing the propertyname - the property's nameoldValue - the old value of the propertynewValue - the new value of the propertyindex - the index of the element in the property which changed
- Throws:
IllegalArgumentException - if source is null
getIndex
public int getIndex()
- Return the index of the changed property.
- Returns:
- the index