public class PropertyChangeEvent extends EventObject
JavaRuntime provides change notification for properties of VM installs
Clients may instantiate this class; not intended to be subclassed.
source| Constructor and Description |
|---|
PropertyChangeEvent(Object source,
String property,
Object oldValue,
Object newValue)
Creates a new property change event.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
getNewValue()
Returns the new value of the property.
|
Object |
getOldValue()
Returns the old value of the property.
|
String |
getProperty()
Returns the name of the property that changed.
|
getSource, toStringpublic PropertyChangeEvent(Object source, String property, Object oldValue, Object newValue)
source - the object whose property has changedproperty - the property that has changed (must not be
null)oldValue - the old value of the property, or
null if nonenewValue - the new value of the property, or
null if nonepublic String getProperty()
public Object getNewValue()
null if not known
or not relevantpublic Object getOldValue()
null if not known
or not relevantCopyright (c) IBM Corp. and others 2000, 2006. All Rights Reserved.