Package org.eclipse.core.runtime
Interface Preferences.IPropertyChangeListener
- All Superinterfaces:
EventListener
- All Known Implementing Classes:
AntCorePreferences
- Enclosing class:
Preferences
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface
public static interface Preferences.IPropertyChangeListener
extends EventListener
Listener for property changes.
Usage:
Preferences.IPropertyChangeListener listener =
new Preferences.IPropertyChangeListener() {
public void propertyChange(Preferences.PropertyChangeEvent event) {
... // code to deal with occurrence of property change
}
};
emitter.addPropertyChangeListener(listener);
...
emitter.removePropertyChangeListener(listener);
Note: Depending on the means in which the property
values changed, the old and new values for the property can
be either typed, a string representation of the value, or null.
Clients who wish to behave properly in all cases should all
three cases in their implementation of the property change listener.
-
Method Summary
Modifier and TypeMethodDescriptionvoidNotification that a property has changed.
-
Method Details
-
propertyChange
Notification that a property has changed.This method gets called when the observed object fires a property change event.
- Parameters:
event- the property change event object describing which property changed and how
-