Android
java.util.prefs
public class

java.util.prefs.NodeChangeEvent

java.lang.Object
java.util.EventObject Serializable
java.util.prefs.NodeChangeEvent 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.

Summary

Fields inherited from class java.util.EventObject

Public Constructors

            NodeChangeEvent(Preferences p, Preferences c)
Construct a new NodeChangeEvent instance.

Public Methods

          Preferences  getChild()
Get the child Preferences node that was added or removed.
          Preferences  getParent()
Get the Preferences instance that this event happened.
Methods inherited from class java.util.EventObject
Methods inherited from class java.lang.Object

Details

Public Constructors

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.

Public Methods

public Preferences getChild()

Get the child Preferences node that was added or removed.

Returns

  • the child Preferences node that was added or removed.

public Preferences getParent()

Get the Preferences instance that this event happened.

Returns

  • the Preferences instance that this event happened.
Copyright 2007 Google Inc. Build 0.9_r1-98467 - 14 Aug 2008 18:48