1. /*
  2. * @(#)TreeExpansionListener.java 1.8 00/02/02
  3. *
  4. * Copyright 1997-2000 Sun Microsystems, Inc. All Rights Reserved.
  5. *
  6. * This software is the proprietary information of Sun Microsystems, Inc.
  7. * Use is subject to license terms.
  8. *
  9. */
  10. package javax.swing.event;
  11. import java.util.EventListener;
  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. public interface TreeExpansionListener extends EventListener
  23. {
  24. /**
  25. * Called whenever an item in the tree has been expanded.
  26. */
  27. public void treeExpanded(TreeExpansionEvent event);
  28. /**
  29. * Called whenever an item in the tree has been collapsed.
  30. */
  31. public void treeCollapsed(TreeExpansionEvent event);
  32. }