FileDocCategorySizeDatePackage
NodeChangeEvent.javaAPI DocJava SE 5 API2644Fri Aug 26 14:57:28 BST 2005java.util.prefs

NodeChangeEvent

public class NodeChangeEvent extends EventObject
An event emitted by a Preferences node to indicate that a child of that node has been added or removed.

Note, that although NodeChangeEvent inherits Serializable interface from java.util.EventObject, it is not intended to be Serializable. Appropriate serialization methods are implemented to throw NotSerializableException.

author
Josh Bloch
version
$I$, $G$
see
Preferences
see
NodeChangeListener
see
PreferenceChangeEvent
since
1.4
serial
exclude

Fields Summary
private Preferences
child
The node that was added or removed.
private static final long
serialVersionUID
Constructors Summary
public NodeChangeEvent(Preferences parent, Preferences child)
Constructs a new NodeChangeEvent instance.

param
parent The parent of the node that was added or removed.
param
child The node that was added or removed.

	super(parent);
	this.child = child;
    
Methods Summary
public java.util.prefs.PreferencesgetChild()
Returns the node that was added or removed.

return
The node that was added or removed.

        return child;
    
public java.util.prefs.PreferencesgetParent()
Returns the parent of the node that was added or removed.

return
The parent Preferences node whose child was added or removed

        return (Preferences) getSource();
    
private voidreadObject(java.io.ObjectInputStream in)
Throws NotSerializableException, since NodeChangeEvent objects are not intended to be serializable.

         throw new NotSerializableException("Not serializable.");
     
private voidwriteObject(java.io.ObjectOutputStream out)
Throws NotSerializableException, since NodeChangeEvent objects are not intended to be serializable.

         throw new NotSerializableException("Not serializable.");