public class PropertyChangeEvent
extends java.util.EventObject
JavaRuntime provides change notification for properties of VM installs
Clients may instantiate this class; not intended to be subclassed.
Provisional API: This class/interface is part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.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 relevantCopyright (c) IBM Corp. and others 2000, 2016. All Rights Reserved.