1 *java.util.prefs.PreferenceChangeEvent* *PreferenceChangeEvent* An event emitted
3 public class PreferenceChangeEvent
4 extends |java.util.EventObject|
6 |java.util.prefs.PreferenceChangeEvent_Description|
7 |java.util.prefs.PreferenceChangeEvent_Fields|
8 |java.util.prefs.PreferenceChangeEvent_Constructors|
9 |java.util.prefs.PreferenceChangeEvent_Methods|
11 ================================================================================
13 *java.util.prefs.PreferenceChangeEvent_Constructors*
14 |java.util.prefs.PreferenceChangeEvent(Preferences,String,String)|Constructs a
16 *java.util.prefs.PreferenceChangeEvent_Methods*
17 |java.util.prefs.PreferenceChangeEvent.getKey()|Returns the key of the preferen
18 |java.util.prefs.PreferenceChangeEvent.getNewValue()|Returns the new value for
19 |java.util.prefs.PreferenceChangeEvent.getNode()|Returns the preference node th
21 *java.util.prefs.PreferenceChangeEvent_Description*
23 An event emitted by a Preferences node to indicate that a preference has been
24 added, removed or has had its value changed.
26 Note, that although PreferenceChangeEvent inherits Serializable interface from
27 EventObject, it is not intended to be Serializable. Appropriate serialization
28 methods are implemented to throw NotSerializableException.
32 *java.util.prefs.PreferenceChangeEvent(Preferences,String,String)*
34 public PreferenceChangeEvent(
35 java.util.prefs.Preferences node,
37 java.lang.String newValue)
39 Constructs a new PreferenceChangeEvent instance.
41 node - The Preferences node that emitted the event.
42 key - The key of the preference that was changed.
43 newValue - The new value of the preference, or null if the preference is being removed.
45 *java.util.prefs.PreferenceChangeEvent.getKey()*
47 public |java.lang.String| getKey()
49 Returns the key of the preference that was changed.
53 Returns: The key of the preference that was changed.
55 *java.util.prefs.PreferenceChangeEvent.getNewValue()*
57 public |java.lang.String| getNewValue()
59 Returns the new value for the preference.
63 Returns: The new value for the preference, or null if the preference was removed.
65 *java.util.prefs.PreferenceChangeEvent.getNode()*
67 public |java.util.prefs.Preferences| getNode()
69 Returns the preference node that emitted the event.
73 Returns: The preference node that emitted the event.