|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.java.sip.communicator.util.PropertyChangeNotifier
public class PropertyChangeNotifier
Represents a source of PropertyChangeEvents which notifies PropertyChangeListeners about changes in the values of properties.
| Constructor Summary | |
|---|---|
PropertyChangeNotifier()
|
|
| Method Summary | |
|---|---|
void |
addPropertyChangeListener(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(String property,
Object oldValue,
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 Object |
getPropertyChangeSource(String property,
Object oldValue,
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(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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PropertyChangeNotifier()
| Method Detail |
|---|
public void addPropertyChangeListener(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.public void removePropertyChangeListener(PropertyChangeListener listener)
listener - a PropertyChangeListener to no longer be
notified about changes in the values of the properties of this
PropertyChangeNotifier
protected void firePropertyChange(String property,
Object oldValue,
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 change
protected Object getPropertyChangeSource(String property,
Object oldValue,
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 change
|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||