java.util.prefs
Class NodeChangeEvent
java.lang.Object
java.util.EventObject
java.util.prefs.NodeChangeEvent
- All Implemented Interfaces:
- Serializable
public class NodeChangeEvent
- extends EventObject
- implements Serializable
This is the event class to indicate one child of the preferences node has
been added or deleted.
Please note that this class cannot be serialized actually, so relevant
serialization methods only throw NotSerializableException.
- Since:
- 1.4
- See Also:
Preferences,
NodeChangeListener,
Serialized Form
NodeChangeEvent
public NodeChangeEvent(Preferences p,
Preferences c)
- Construct a new
NodeChangeEvent instance.
- Parameters:
p - the Preferences instance that this event happened,
this object is considered as event's source.c - the child Preferences instance that was added
or deleted.
getParent
public Preferences getParent()
- Get the
Preferences instance that this event happened.
- Returns:
- the
Preferences instance that this event happened.
getChild
public Preferences getChild()
- Get the child
Preferences node that was added or removed.
- Returns:
- the child
Preferences node that was added or removed.
Please submit a feedback, bug or feature