|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.EventObject
java.util.prefs.PreferenceChangeEvent
public class PreferenceChangeEvent
This is the event class to indicate some preferences has been added, deleted or updated.
Please note that this class cannot be serialized actually, so relevant
serialization methods only throw NotSerializableException.
Preferences,
PreferenceChangeListener,
Serialized Form| Field Summary |
|---|
| Fields inherited from class java.util.EventObject |
|---|
source |
| Constructor Summary | |
|---|---|
PreferenceChangeEvent(Preferences p,
String k,
String v)
Construct a new PreferenceChangeEvent instance. |
|
| Method Summary | |
|---|---|
String |
getKey()
Get the changed preference's key. |
String |
getNewValue()
Get the new value of the changed preference, or null if this preference is removed. |
Preferences |
getNode()
Get the Preferences instance that this event happened. |
| Methods inherited from class java.util.EventObject |
|---|
getSource, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PreferenceChangeEvent(Preferences p,
String k,
String v)
PreferenceChangeEvent instance.
p - the Preferences instance that this event happened,
this object is considered as event's source.k - the changed preference's keyv - the new value of the changed preference, this value can be null,
which means the preference is removed.| Method Detail |
|---|
public String getKey()
public String getNewValue()
public Preferences getNode()
Preferences instance that this event happened.
Preferences instance that this event happened.
|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||