1. /*
  2. * @(#)TreeSelectionListener.java 1.11 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 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.11 02/02/00
  24. * @author Scott Violet
  25. */
  26. public interface TreeSelectionListener extends EventListener
  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 e);
  33. }