KickJava   Java API By Example, From Geeks To Geeks.

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


1 /*
2  * @(#)TreeWillExpandListener.java 1.9 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 import javax.swing.tree.ExpandVetoException JavaDoc;
12
13 /**
14   * The listener that's notified when a tree expands or collapses
15   * a node.
16   * For further information and examples see
17   * <a HREF="http://java.sun.com/docs/books/tutorial/uiswing/events/treewillexpandlistener.html">How to Write a Tree-Will-Expand Listener</a>,
18   * a section in <em>The Java Tutorial.</em>
19   *
20   * @version 1.9 12/19/03
21   * @author Scott Violet
22   */

23
24 public interface TreeWillExpandListener extends EventListener JavaDoc {
25     /**
26      * Invoked whenever a node in the tree is about to be expanded.
27      */

28     public void treeWillExpand(TreeExpansionEvent JavaDoc event) throws ExpandVetoException JavaDoc;
29
30     /**
31      * Invoked whenever a node in the tree is about to be collapsed.
32      */

33     public void treeWillCollapse(TreeExpansionEvent JavaDoc event) throws ExpandVetoException JavaDoc;
34 }
35
Popular Tags