java.beans

Class IndexedPropertyChangeEvent

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

Constructor Summary
IndexedPropertyChangeEvent(Object source, String name, Object oldValue, Object newValue, int index)
Create a new IndexedPropertyChangeEvent.
Method Summary
intgetIndex()
Return the index of the changed property.

Constructor Detail

IndexedPropertyChangeEvent

public IndexedPropertyChangeEvent(Object source, String name, Object oldValue, Object newValue, int index)
Create a new IndexedPropertyChangeEvent.

Parameters: source the Bean containing the property name the property's name oldValue the old value of the property newValue the new value of the property index the index of the element in the property which changed

Throws: IllegalArgumentException if source is null

Method Detail

getIndex

public int getIndex()
Return the index of the changed property.

Returns: the index