FileDocCategorySizeDatePackage
NodeChangeEvent.javaAPI DocAndroid 1.5 API3165Wed May 06 22:41:04 BST 2009java.util.prefs

NodeChangeEvent

public class NodeChangeEvent extends EventObject implements Serializable
This is the event class to indicate that one child of the preference node has been added or deleted.

Please note that the serialization functionality has not yet been implemented, so the serialization methods do nothing but throw a {@code NotSerializableException}.

since
Android 1.0

Fields Summary
private static final long
serialVersionUID
private final Preferences
parent
private final Preferences
child
Constructors Summary
public NodeChangeEvent(Preferences p, Preferences c)
Constructs a new {@code NodeChangeEvent} instance.

param
p the {@code Preferences} instance that fired this event; this object is considered as the event source.
param
c the child {@code Preferences} instance that was added or deleted.
since
Android 1.0

    
                                                                                  
          
        super(p);
        parent = p;
        child = c;
    
Methods Summary
public java.util.prefs.PreferencesgetChild()
Gets the child {@code Preferences} node that was added or removed.

return
the added or removed child {@code Preferences} node.
since
Android 1.0

        return child;
    
public java.util.prefs.PreferencesgetParent()
Gets the {@code Preferences} instance that fired this event.

return
the {@code Preferences} instance that fired this event.
since
Android 1.0

        return parent;
    
private voidreadObject(java.io.ObjectInputStream in)

        throw new NotSerializableException();
    
private voidwriteObject(java.io.ObjectOutputStream out)

        throw new NotSerializableException();