APIdia Launch Partner
Top Description Fields Constructors Methods
java.beans

public Class IndexedPropertyChangeEvent

extends PropertyChangeEvent
Class Inheritance
Imports
java.io.Serial

An "IndexedPropertyChange" event gets delivered whenever a component that conforms to the JavaBeans specification (a "bean") changes a bound indexed property. This class is an extension of PropertyChangeEvent but contains the index of the property that has changed.

Null values may be provided for the old and the new values if their true values are not known.

An event source may send a null object as the name to indicate that an arbitrary set of if its properties have changed. In this case the old and new values should also be null.

Author
Mark Davidson
Since
1.5

Field Summary

Modifier and TypeField and Description
private int
private static final long
serialVersionUID

Hides java.beans.PropertyChangeEvent.serialVersionUID.

Use serialVersionUID from JDK 1.7 for interoperability.

Constructor Summary

AccessConstructor and Description
public
IndexedPropertyChangeEvent(Object
The bean that fired the event.
source
,
String
The programmatic name of the property that was changed.
propertyName
,
Object
The old value of the property.
oldValue
,
Object
The new value of the property.
newValue
,
int
index of the property element that was changed.
index
)

Constructs a new IndexedPropertyChangeEvent object.

Method Summary

Modifier and TypeMethod and Description
pack-priv void
public int

Returns:

The index specifying the property element that was changed.
getIndex
()

Gets the index of the property that was changed.

Inherited from java.beans.PropertyChangeEvent:
getNewValuegetOldValuegetPropagationIdgetPropertyNamesetPropagationIdtoString

Field Detail

indexback to summary
private int index
serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.beans.PropertyChangeEvent.serialVersionUID.

Use serialVersionUID from JDK 1.7 for interoperability.

Annotations
@Serial

Constructor Detail

IndexedPropertyChangeEventback to summary
public IndexedPropertyChangeEvent(Object source, String propertyName, Object oldValue, Object newValue, int index)

Constructs a new IndexedPropertyChangeEvent object.

Parameters
source:Object

The bean that fired the event.

propertyName:String

The programmatic name of the property that was changed.

oldValue:Object

The old value of the property.

newValue:Object

The new value of the property.

index:int

index of the property element that was changed.

Method Detail

appendToback to summary
pack-priv void appendTo(StringBuilder sb)

Overrides java.beans.PropertyChangeEvent.appendTo.

Annotations
@Override
getIndexback to summary
public int getIndex()

Gets the index of the property that was changed.

Returns:int

The index specifying the property element that was changed.