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 PropertyChangeListener
s 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 | |
---|---|
PropertyChangeListenerProxy(propertyName: String!, listener: PropertyChangeListener!) Constructor which binds the |
Public methods | |
---|---|
open String! |
Returns the name of the named property associated with the listener. |
open Unit |
propertyChange(event: PropertyChangeEvent!) Forwards the property change event to the listener delegate. |
Inherited functions | |
---|---|
Public constructors
PropertyChangeListenerProxy
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
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
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 |