Skip to content

Most visited

Recently visited

navigation
Added in API level 3

PropertyChangeEvent

public class PropertyChangeEvent
extends EventObject

java.lang.Object
   ↳ java.util.EventObject
     ↳ java.beans.PropertyChangeEvent
Known Direct Subclasses


An event that indicates that a constraint or a boundary of a property has changed.

Summary

Inherited fields

From class java.util.EventObject

Public constructors

PropertyChangeEvent(Object source, String propertyName, Object oldValue, Object newValue)

The constructor used to create a new PropertyChangeEvent.

Public methods

Object getNewValue()

Returns the new value that the property now has.

Object getOldValue()

Returns the old value that the property had.

Object getPropagationId()

Returns the propagationId object.

String getPropertyName()

Returns the name of the property that has changed.

void setPropagationId(Object propagationId)

Sets the propagationId object.

Inherited methods

From class java.util.EventObject
From class java.lang.Object

Public constructors

PropertyChangeEvent

Added in API level 3
PropertyChangeEvent (Object source, 
                String propertyName, 
                Object oldValue, 
                Object newValue)

The constructor used to create a new PropertyChangeEvent.

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

Public methods

getNewValue

Added in API level 3
Object getNewValue ()

Returns the new value that the property now has. If the new value is unknown this method returns null.

Returns
Object the old property value or null.

getOldValue

Added in API level 3
Object getOldValue ()

Returns the old value that the property had. If the old value is unknown this method returns null.

Returns
Object the old property value or null.

getPropagationId

Added in API level 3
Object getPropagationId ()

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.

Returns
Object the propagationId object.

getPropertyName

Added in API level 3
String getPropertyName ()

Returns the name of the property that has changed. If an unspecified set of properties has changed it returns null.

Returns
String the name of the property that has changed, or null.

setPropagationId

Added in API level 3
void setPropagationId (Object propagationId)

Sets the propagationId object.

Parameters
propagationId Object

See also:

This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.