java.lang.Object | ||
↳ | java.util.EventObject | |
↳ | java.util.prefs.PreferenceChangeEvent |
This is the event class to indicate that a preference has been added, deleted or updated.
Please note that although the class is marked as Serializable
by
inheritance from EventObject
, this type is not intended to be serialized
so the serialization methods do nothing but throw a NotSerializableException
.
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.util.EventObject
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Construct a new
PreferenceChangeEvent instance. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Gets the key of the changed preference.
| |||||||||||
Gets the new value of the changed preference or
null if the
preference has been removed. | |||||||||||
Gets the
Preferences instance that fired this event. |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.util.EventObject
| |||||||||||
From class
java.lang.Object
|
Construct a new PreferenceChangeEvent
instance.
p | the Preferences instance that fired this event; this object is
considered as the event's source. |
---|---|
k | the changed preference key. |
v | the new value of the changed preference, this value can be
null , which means the preference has been removed.
|
Gets the key of the changed preference.
Gets the new value of the changed preference or null
if the
preference has been removed.
null
if the
preference has been removed.
Gets the Preferences
instance that fired this event.
Preferences
instance that fired this event.