public class PropertyChangeEvent extends EventObject
This concrete class was designed to be instantiated, but may also be subclassed if required.
The JFace frameworks contain classes that report property
change events for internal state changes that may be of interest
to external parties. A special listener interface
IPropertyChangeListener) is defined for this purpose,
and a typical class allow listeners to be registered via
|Constructor and Description|
Creates a new property change event.
|Modifier and Type||Method and Description|
Returns the new value of the property.
Returns the old value of the property.
Returns the name of the property that changed.
source- the object whose property has changed
property- the property that has changed (must not be
oldValue- the old value of the property, or
newValue- the new value of the property, or
public Object getNewValue()
nullif not known or not relevant (for instance if the property was removed).
public Object getOldValue()
nullif not known or not relevant (for instance if the property was just added and there was no old value).
public String getProperty()
Warning: there is no guarantee that the property name returned is a constant string. Callers must compare property names using equals, not ==.
Copyright (c) 2000, 2013 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.