| |
|
| java.lang.Object java.util.EventObject java.util.prefs.PreferenceChangeEvent
PreferenceChangeEvent | public class PreferenceChangeEvent extends java.util.EventObject (Code) | | 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.
author: Josh Bloch version: 1.13, 05/05/07 See Also: Preferences See Also: PreferenceChangeListener See Also: NodeChangeEvent since: 1.4 |
Method Summary | |
public String | getKey() Returns the key of the preference that was changed. | public String | getNewValue() Returns the new value for the preference. | public Preferences | getNode() Returns the preference node that emitted the event. |
PreferenceChangeEvent | public PreferenceChangeEvent(Preferences node, String key, String newValue)(Code) | | Constructs a new PreferenceChangeEvent instance.
Parameters: node - The Preferences node that emitted the event. Parameters: key - The key of the preference that was changed. Parameters: newValue - The new value of the preference, or nullif the preference is being removed. |
getKey | public String getKey()(Code) | | Returns the key of the preference that was changed.
The key of the preference that was changed. |
getNewValue | public String getNewValue()(Code) | | Returns the new value for the preference.
The new value for the preference, or null if thepreference was removed. |
getNode | public Preferences getNode()(Code) | | Returns the preference node that emitted the event.
The preference node that emitted the event. |
|
|
|