com.googlecode.openbeans
Class IndexedPropertyChangeEvent

java.lang.Object
  extended by java.util.EventObject
      extended by com.googlecode.openbeans.PropertyChangeEvent
          extended by com.googlecode.openbeans.IndexedPropertyChangeEvent
All Implemented Interfaces:
Serializable

public class IndexedPropertyChangeEvent
extends PropertyChangeEvent

A type of PropertyChangeEvent that indicates that an indexed property has changed.

Since:
1.5
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
IndexedPropertyChangeEvent(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
 int getIndex()
          Answer the index of the property that was changed in this event.
 
Methods inherited from class com.googlecode.openbeans.PropertyChangeEvent
getNewValue, getOldValue, getPropagationId, getPropertyName, setPropagationId
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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 have 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 Detail

getIndex

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

Returns:
The property element index.


Copyright © 2013. All Rights Reserved.