java.lang.Object
java.util.EventObject
java.util.prefs.PreferenceChangeEvent
- All Implemented Interfaces:
- Serializable
An event emitted by a 
Preferences node to indicate that
 a preference has been added, removed or has had its value changed.Note, that although PreferenceChangeEvent inherits Serializable interface from EventObject, it is not intended to be Serializable. Appropriate serialization methods are implemented to throw NotSerializableException.
- Since:
- 1.4
- See Also:
- 
Field SummaryFields declared in class java.util.EventObjectsource
- 
Constructor SummaryConstructorsConstructorDescriptionPreferenceChangeEvent(Preferences node, String key, String newValue) Constructs a newPreferenceChangeEventinstance.
- 
Method SummaryMethods declared in class java.util.EventObjectgetSource, toString
- 
Constructor Details- 
PreferenceChangeEventConstructs a newPreferenceChangeEventinstance.- Parameters:
- node- The Preferences node that emitted the event.
- key- The key of the preference that was changed.
- newValue- The new value of the preference, or- nullif the preference is being removed.
 
 
- 
- 
Method Details- 
getNodeReturns the preference node that emitted the event.- Returns:
- The preference node that emitted the event.
 
- 
getKeyReturns the key of the preference that was changed.- Returns:
- The key of the preference that was changed.
 
- 
getNewValueReturns the new value for the preference.- Returns:
- The new value for the preference, or nullif the preference was removed.
 
 
-