KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > javax > swing > event > TreeSelectionListener


1 /*
2  * @(#)TreeSelectionListener.java 1.14 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 javax.swing.event;
9
10 import java.util.EventListener JavaDoc;
11
12 /**
13  * The listener that's notified when the selection in a TreeSelectionModel
14  * changes.
15  * For more information and examples see
16  * <a
17  href="http://java.sun.com/docs/books/tutorial/uiswing/events/treeselectionlistener.html">How to Write a Tree Selection Listener</a>,
18  * a section in <em>The Java Tutorial.</em>
19  *
20  * @see javax.swing.tree.TreeSelectionModel
21  * @see javax.swing.JTree
22  *
23  * @version 1.14 12/19/03
24  * @author Scott Violet
25  */

26 public interface TreeSelectionListener extends EventListener JavaDoc
27 {
28     /**
29       * Called whenever the value of the selection changes.
30       * @param e the event that characterizes the change.
31       */

32     void valueChanged(TreeSelectionEvent JavaDoc e);
33 }
34
Popular Tags