Skip to content

Most visited

Recently visited

navigation
Added in API level 1

NodeChangeEvent

public class NodeChangeEvent
extends EventObject implements Serializable

java.lang.Object
   ↳ java.util.EventObject
     ↳ java.util.prefs.NodeChangeEvent


This is the event class to indicate that one child of the preference node has been added or deleted.

Please note that although the class is marked as Serializable by inheritance from EventObject, this type is not intended to be serialized so the serialization methods do nothing but throw a NotSerializableException.

See also:

Summary

Inherited fields

From class java.util.EventObject

Public constructors

NodeChangeEvent(Preferences p, Preferences c)

Constructs a new NodeChangeEvent instance.

Public methods

Preferences getChild()

Gets the child Preferences node that was added or removed.

Preferences getParent()

Gets the Preferences instance that fired this event.

Inherited methods

From class java.util.EventObject
From class java.lang.Object

Public constructors

NodeChangeEvent

Added in API level 1
NodeChangeEvent (Preferences p, 
                Preferences c)

Constructs a new NodeChangeEvent instance.

Parameters
p Preferences: the Preferences instance that fired this event; this object is considered as the event source.
c Preferences: the child Preferences instance that was added or deleted.

Public methods

getChild

Added in API level 1
Preferences getChild ()

Gets the child Preferences node that was added or removed.

Returns
Preferences the added or removed child Preferences node.

getParent

Added in API level 1
Preferences getParent ()

Gets the Preferences instance that fired this event.

Returns
Preferences the Preferences instance that fired this event.
This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.