KickJava   Java API By Example, From Geeks To Geeks.

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


1 /*
2  * @(#)TreeExpansionListener.java 1.11 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 a tree expands or collapses
14   * a node.
15   * For further documentation and examples see
16   * <a
17   href="http://java.sun.com/docs/books/tutorial/uiswing/events/treeexpansionlistener.html">How to Write a Tree Expansion Listener</a>,
18   * a section in <em>The Java Tutorial.</em>
19   *
20   * @author Scott Violet
21   */

22
23 public interface TreeExpansionListener extends EventListener JavaDoc
24 {
25     /**
26       * Called whenever an item in the tree has been expanded.
27       */

28     public void treeExpanded(TreeExpansionEvent JavaDoc event);
29
30     /**
31       * Called whenever an item in the tree has been collapsed.
32       */

33     public void treeCollapsed(TreeExpansionEvent JavaDoc event);
34 }
35
Popular Tags