1. /*
  2. * @(#)NodeChangeListener.java 1.4 03/12/19
  3. *
  4. * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
  5. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  6. */
  7. package java.util.prefs;
  8. /**
  9. * A listener for receiving preference node change events.
  10. *
  11. * @author Josh Bloch
  12. * @version 1.4, 12/19/03
  13. * @see Preferences
  14. * @see NodeChangeEvent
  15. * @see PreferenceChangeListener
  16. * @since 1.4
  17. */
  18. public interface NodeChangeListener extends java.util.EventListener {
  19. /**
  20. * This method gets called when a child node is added.
  21. *
  22. * @param evt A node change event object describing the parent
  23. * and child node.
  24. */
  25. void childAdded(NodeChangeEvent evt);
  26. /**
  27. * This method gets called when a child node is removed.
  28. *
  29. * @param evt A node change event object describing the parent
  30. * and child node.
  31. */
  32. void childRemoved(NodeChangeEvent evt);
  33. }