public class PropertyChangeNotifier
extends java.lang.Object
Constructor and Description |
---|
PropertyChangeNotifier()
Initializes a new PropertyChangeNotifier instance.
|
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Adds a specific PropertyChangeListener to the list of listeners
interested in and notified about changes in the values of the properties
of this PropertyChangeNotifier.
|
protected void |
firePropertyChange(java.lang.String property,
java.lang.Object oldValue,
java.lang.Object newValue)
Fires a new PropertyChangeEvent to the
PropertyChangeListeners registered with this
PropertyChangeNotifier in order to notify about a change in the
value of a specific property which had its old value modified to a
specific new value.
|
protected java.lang.Object |
getPropertyChangeSource(java.lang.String property,
java.lang.Object oldValue,
java.lang.Object newValue)
Gets the Object to be reported as the source of a new
PropertyChangeEvent which is to notify the
PropertyChangeListeners registered with this
PropertyChangeNotifier about the change in the value of a
property with a specific name from a specific old value to a specific new
value.
|
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Removes a specific PropertyChangeListener from the list of
listeners interested in and notified about changes in the values of the
properties of this PropertyChangeNotifer.
|
public PropertyChangeNotifier()
public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
listener
- a PropertyChangeListener to be notified about
changes in the values of the properties of this
PropertyChangeNotifier. If the specified listener is already in
the list of interested listeners (i.e. it has been previously added), it
is not added again.protected void firePropertyChange(java.lang.String property, java.lang.Object oldValue, java.lang.Object newValue)
property
- the name of the property of this
PropertyChangeNotifier which had its value changedoldValue
- the value of the property with the specified name before
the changenewValue
- the value of the property with the specified name after
the changeprotected java.lang.Object getPropertyChangeSource(java.lang.String property, java.lang.Object oldValue, java.lang.Object newValue)
property
- the name of the property which had its value changed from
the specified old value to the specified new valueoldValue
- the value of the property with the specified name before
the changenewValue
- the value of the property with the specified name after
the changepublic void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
listener
- a PropertyChangeListener to no longer be
notified about changes in the values of the properties of this
PropertyChangeNotifier
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.