public class PropertyChangeEvent
extends java.util.EventObject
JavaRuntime provides change notification for properties of VM installs
Clients may instantiate this class.
| Constructor and Description |
|---|
PropertyChangeEvent(java.lang.Object source,
java.lang.String property,
java.lang.Object oldValue,
java.lang.Object newValue)
Creates a new property change event.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
getNewValue()
Returns the new value of the property.
|
java.lang.Object |
getOldValue()
Returns the old value of the property.
|
java.lang.String |
getProperty()
Returns the name of the property that changed.
|
public PropertyChangeEvent(java.lang.Object source,
java.lang.String property,
java.lang.Object oldValue,
java.lang.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 java.lang.String getProperty()
public java.lang.Object getNewValue()
null if not known
or not relevantpublic java.lang.Object getOldValue()
null if not known
or not relevant