Added in API level 3

PropertyChangeListenerProxy

open class PropertyChangeListenerProxy : EventListenerProxy<PropertyChangeListener!>, PropertyChangeListener
kotlin.Any
   ↳ java.util.EventListenerProxy<java.beans.PropertyChangeListener>
   ↳ java.beans.PropertyChangeListenerProxy

A class which extends the EventListenerProxy specifically for adding a PropertyChangeListener with a "bound" property. Instances of this class can be added as PropertyChangeListeners to a bean which supports firing property change events.

If the object has a getPropertyChangeListeners method then the array returned could be a mixture of PropertyChangeListener and PropertyChangeListenerProxy objects.

Summary

Public constructors

Constructor which binds the PropertyChangeListener to a specific property.

Public methods
open String!

Returns the name of the named property associated with the listener.

open Unit

Forwards the property change event to the listener delegate.

Inherited functions

Public constructors

PropertyChangeListenerProxy

Added in API level 3
PropertyChangeListenerProxy(
    propertyName: String!,
    listener: PropertyChangeListener!)

Constructor which binds the PropertyChangeListener to a specific property.

Parameters
propertyName String!: the name of the property to listen on
listener PropertyChangeListener!: the listener object

Public methods

getPropertyName

Added in API level 3
open fun getPropertyName(): String!

Returns the name of the named property associated with the listener.

Return
String! the name of the named property associated with the listener

propertyChange

Added in API level 3
open fun propertyChange(event: PropertyChangeEvent!): Unit

Forwards the property change event to the listener delegate.

Parameters
evt A PropertyChangeEvent object describing the event source and the property that has changed.
event PropertyChangeEvent!: the property change event