Package java.beans

Class IndexedPropertyChangeEvent

All Implemented Interfaces:
Serializable

public class IndexedPropertyChangeEvent
extends PropertyChangeEvent
A type of PropertyChangeEvent that indicates that an indexed property has changed.
See Also:
Serialized Form
  • 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, or null to indicate an unspecified set of the properties has changed.
      oldValue - the previous value of the property, or null if the propertyName is null or the previous value is unknown.
      newValue - the new value of the property, or null if the propertyName is null or the new value is unknown..
      index - the index of the property.
  • Method Details

    • getIndex

      public int getIndex()
      Returns the index of the property that was changed in this event.