java.util.prefs
Class PreferenceChangeEvent
java.lang.Object
|
+--java.util.EventObject
|
+--java.util.prefs.PreferenceChangeEvent
ObjectEvent fired when a Preferences entry changes.
This event is generated when a entry is added, changed or removed.
When an entry is removed then
getNewValue
will return null.
Preference change events are only generated for entries in one particular
preference node. Notification of subnode addition/removal is given by a
NodeChangeEvent
.
Since:Author:- Mark Wielaard (mark@klomp.org)
PreferenceChangeEvent
public PreferenceChangeEvent(java.util.prefs.Preferences node, java.lang.String key, java.lang.String value)
Creates a new PreferenceChangeEvent.
Parameters:
getKey
public String getKey()
Returns the key of the entry that was added, changed or removed.
getNewValue
public String getNewValue()
Returns the new value of the entry that was added or changed, or
returns null when the entry was removed.
getNode
public Preferences getNode()
Returns the source Preference node from which an entry was added,
changed or removed.
getNewValue
will return null.Preference change events are only generated for entries in one particular preference node. Notification of subnode addition/removal is given by a
NodeChangeEvent
.