1. /*
  2. * @(#)TreeSelectionListener.java 1.13 03/01/23
  3. *
  4. * Copyright 2003 Sun Microsystems, Inc. All rights reserved.
  5. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  6. */
  7. package javax.swing.event;
  8. import java.util.EventListener;
  9. /**
  10. * The listener that's notified when the selection in a TreeSelectionModel
  11. * changes.
  12. * For more information and examples see
  13. * <a
  14. href="http://java.sun.com/docs/books/tutorial/uiswing/events/treeselectionlistener.html">How to Write a Tree Selection Listener</a>,
  15. * a section in <em>The Java Tutorial.</em>
  16. *
  17. * @see javax.swing.tree.TreeSelectionModel
  18. * @see javax.swing.JTree
  19. *
  20. * @version 1.13 01/23/03
  21. * @author Scott Violet
  22. */
  23. public interface TreeSelectionListener extends EventListener
  24. {
  25. /**
  26. * Called whenever the value of the selection changes.
  27. * @param e the event that characterizes the change.
  28. */
  29. void valueChanged(TreeSelectionEvent e);
  30. }