15 * accompanied this code).
16 *
17 * You should have received a copy of the GNU General Public License version
18 * 2 along with this work; if not, write to the Free Software Foundation,
19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 *
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 * or visit www.oracle.com if you need additional information or have any
23 * questions.
24 */
25
26 package javax.swing.event;
27
28 import java.util.EventListener;
29
30 /**
31 * Defines the interface for an object that listens
32 * to changes in a TreeModel.
33 * For further information and examples see
34 * <a
35 href="http://java.sun.com/docs/books/tutorial/uiswing/events/treemodellistener.html">How to Write a Tree Model Listener</a>,
36 * a section in <em>The Java Tutorial.</em>
37 *
38 * @author Rob Davis
39 * @author Ray Ryan
40 */
41 public interface TreeModelListener extends EventListener {
42
43 /**
44 * <p>Invoked after a node (or a set of siblings) has changed in some
45 * way. The node(s) have not changed locations in the tree or
46 * altered their children arrays, but other attributes have
47 * changed and may affect presentation. Example: the name of a
48 * file has changed, but it is in the same location in the file
49 * system.</p>
50 * <p>To indicate the root has changed, childIndices and children
51 * will be null. </p>
52 *
53 * <p>Use <code>e.getPath()</code>
54 * to get the parent of the changed node(s).
55 * <code>e.getChildIndices()</code>
|
15 * accompanied this code).
16 *
17 * You should have received a copy of the GNU General Public License version
18 * 2 along with this work; if not, write to the Free Software Foundation,
19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 *
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 * or visit www.oracle.com if you need additional information or have any
23 * questions.
24 */
25
26 package javax.swing.event;
27
28 import java.util.EventListener;
29
30 /**
31 * Defines the interface for an object that listens
32 * to changes in a TreeModel.
33 * For further information and examples see
34 * <a
35 href="http://docs.oracle.com/javase/tutorial/uiswing/events/treemodellistener.html">How to Write a Tree Model Listener</a>,
36 * a section in <em>The Java Tutorial.</em>
37 *
38 * @author Rob Davis
39 * @author Ray Ryan
40 */
41 public interface TreeModelListener extends EventListener {
42
43 /**
44 * <p>Invoked after a node (or a set of siblings) has changed in some
45 * way. The node(s) have not changed locations in the tree or
46 * altered their children arrays, but other attributes have
47 * changed and may affect presentation. Example: the name of a
48 * file has changed, but it is in the same location in the file
49 * system.</p>
50 * <p>To indicate the root has changed, childIndices and children
51 * will be null. </p>
52 *
53 * <p>Use <code>e.getPath()</code>
54 * to get the parent of the changed node(s).
55 * <code>e.getChildIndices()</code>
|