NodeChangeListener (Java SE 26 & JDK 26)
Description: declaration: module: java.prefs, package: java.util.prefs, interface: NodeChangeListener
Keywords: java.util.prefs.NodeChangeListener interface

# Interface NodeChangeListener

All Superinterfaces:
  `EventListener`

public interface NodeChangeListener extends EventListener
A listener for receiving preference node change events.

Since:
  1.4
See Also:
  - `Preferences`
  - `NodeChangeEvent`
  - `PreferenceChangeListener`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `childAdded(NodeChangeEvent evt)`
  This method gets called when a child node is added.
  `void`
  `childRemoved(NodeChangeEvent evt)`
  This method gets called when a child node is removed.

- ## Method Details

  - ### childAdded

    void childAdded(NodeChangeEvent evt)
    This method gets called when a child node is added.
    Parameters:
      `evt` - A node change event object describing the parent and child node.

  - ### childRemoved

    void childRemoved(NodeChangeEvent evt)
    This method gets called when a child node is removed.
    Parameters:
      `evt` - A node change event object describing the parent and child node.