FileDocCategorySizeDatePackage
PropertyChangeEvent.javaAPI DocAndroid 1.5 API3653Wed May 06 22:41:02 BST 2009java.beans

PropertyChangeEvent

public class PropertyChangeEvent extends EventObject
An event that indicates that a constraint or a boundary of a property has changed.
since
Android 1.0

Fields Summary
private static final long
serialVersionUID
String
propertyName
Object
oldValue
Object
newValue
Object
propagationId
Constructors Summary
public PropertyChangeEvent(Object source, String propertyName, Object oldValue, Object newValue)
The constructor used to create a new {@code PropertyChangeEvent}.

param
source the changed bean.
param
propertyName the changed property, or null to indicate an unspecified set of the properties has changed.
param
oldValue the previous value of the property, or null if the propertyName is null or the previous value is unknown.
param
newValue the new value of the property, or null if the propertyName is null or the new value is unknown.


                                                                                                                                                                                      
        
                
        super(source);

        this.propertyName = propertyName;
        this.oldValue = oldValue;
        this.newValue = newValue;
    
Methods Summary
public java.lang.ObjectgetNewValue()
Returns the new value that the property now has. If the new value is unknown this method returns null.

return
the old property value or null.

        return newValue;
    
public java.lang.ObjectgetOldValue()
Returns the old value that the property had. If the old value is unknown this method returns null.

return
the old property value or null.

        return oldValue;
    
public java.lang.ObjectgetPropagationId()
Returns the propagationId object. This is reserved for future use. Beans 1.0 demands that a listener receiving this property and then sending its own PropertyChangeEvent sets the received propagationId on the new PropertyChangeEvent's propagationId field.

return
the propagationId object.

        return propagationId;
    
public java.lang.StringgetPropertyName()
Returns the name of the property that has changed. If an unspecified set of properties has changed it returns null.

return
the name of the property that has changed, or null.

        return propertyName;
    
public voidsetPropagationId(java.lang.Object propagationId)
Sets the propagationId object.

see
#getPropagationId()

        this.propagationId = propagationId;