addPropertyChangeListener

Add a PropertyChangeListener to the listener list. The listener is registered for all properties. The same listener object may be added more than once, and will be called as many times as it is added. If listener is null, no exception is thrown and no action is taken.

Parameters

listener

The PropertyChangeListener to be added


open fun addPropertyChangeListener(propertyName: String, listener: PropertyChangeListener)

Add a PropertyChangeListener for a specific property. The listener will be invoked only when a call on firePropertyChange names that specific property. The same listener object may be added more than once. For each property, the listener will be invoked the number of times it was added for that property.

Since

1.2

Parameters

propertyName

The name of the property to listen on.

listener

The PropertyChangeListener to be added