Index (Frames) | Index (No Frames) | Package | Package Tree | Tree
java.util.prefs

Class NodeChangeEvent

java.lang.Object
|
+--java.util.EventObject
   |
   +--java.util.prefs.NodeChangeEvent


public class NodeChangeEvent

extends EventObject

ObjectEvent fired when a Preference node is added/removed. This event is only generated when a new subnode is added or a subnode is removed from a preference node. Changes in the entries of a preference node are indicated with a PreferenceChangeEvent.

Since:Author:

Constructor Summary

NodeChangeEvent(java.util.prefs.Preferences parentNode, java.util.prefs.Preferences childNode)

Creates a new NodeChangeEvent.

Method Summary

java.util.prefs.PreferencesgetChild()

Returns the child preference subnode that was added or removed.
java.util.prefs.PreferencesgetParent()

Returns the source parent preference node from which a subnode was added or removed.

Constructor Details

NodeChangeEvent

public NodeChangeEvent(java.util.prefs.Preferences parentNode, java.util.prefs.Preferences childNode)

Creates a new NodeChangeEvent.

Parameters:


Method Details

getChild

public Preferences getChild()

Returns the child preference subnode that was added or removed. To see wether it is still a valid preference node one has to call event.getChild().nodeExists("").


getParent

public Preferences getParent()

Returns the source parent preference node from which a subnode was added or removed.