public interface Observable
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Adds the given PropertyChangeListener to the listener list.
|
void |
addPropertyChangeListener(java.lang.String propertyName,
java.beans.PropertyChangeListener listener)
Removes the given PropertyChangeListener from the listener list.
|
java.beans.PropertyChangeListener[] |
getPropertyChangeListeners()
Returns an array of all the listeners that were added with addPropertyChangeListener().
|
java.beans.PropertyChangeListener[] |
getPropertyChangeListeners(java.lang.String propertyName)
Returns an array of all the listeners which have been associated
with the named property.
|
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Removes the given PropertyChangeListener from the listener list.
|
void |
removePropertyChangeListener(java.lang.String propertyName,
java.beans.PropertyChangeListener listener)
Removes the given PropertyChangeListener from the listener list.
|
void addPropertyChangeListener(@Nullable java.beans.PropertyChangeListener listener)
The listener is registered for all bound properties of this class.
listener
- the PropertyChangeListener to be addedremovePropertyChangeListener(PropertyChangeListener)
void addPropertyChangeListener(@Nullable java.lang.String propertyName, @Nullable java.beans.PropertyChangeListener listener)
The listener is registered an specific property of this class.
propertyName
- The name of the property to listen on.listener
- the PropertyChangeListener to be addedremovePropertyChangeListener(String, PropertyChangeListener)
void removePropertyChangeListener(@Nullable java.beans.PropertyChangeListener listener)
This method should be used to remove PropertyChangeListeners that were registered for all bound properties of this class.
listener
- the PropertyChangeListener to be removedaddPropertyChangeListener(PropertyChangeListener)
void removePropertyChangeListener(@Nullable java.lang.String propertyName, @Nullable java.beans.PropertyChangeListener listener)
This method should be used to remove PropertyChangeListeners that were registered for an specific property of this class.
propertyName
- The name of the property that was listened on.listener
- the PropertyChangeListener to be removedaddPropertyChangeListener(String, PropertyChangeListener)
@Nonnull java.beans.PropertyChangeListener[] getPropertyChangeListeners()
PropertyChangeListeners
added or an empty array if no
listeners have been added.@Nonnull java.beans.PropertyChangeListener[] getPropertyChangeListeners(@Nullable java.lang.String propertyName)
propertyName
- The name of the property being listened toPropertyChangeListeners
associated with
the named property. If no such listeners have been added,
or if propertyName
is null, an empty array is
returned.