KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > java > util > prefs > NodeChangeListener


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
8 package java.util.prefs;
9
10 /**
11  * A listener for receiving preference node change events.
12  *
13  * @author Josh Bloch
14  * @version 1.4, 12/19/03
15  * @see Preferences
16  * @see NodeChangeEvent
17  * @see PreferenceChangeListener
18  * @since 1.4
19  */

20
21 public interface NodeChangeListener extends java.util.EventListener JavaDoc {
22     /**
23      * This method gets called when a child node is added.
24      *
25      * @param evt A node change event object describing the parent
26      * and child node.
27      */

28     void childAdded(NodeChangeEvent JavaDoc evt);
29
30     /**
31      * This method gets called when a child node is removed.
32      *
33      * @param evt A node change event object describing the parent
34      * and child node.
35      */

36     void childRemoved(NodeChangeEvent JavaDoc evt);
37 }
38
Popular Tags