1. /*
  2. * @(#)TextListener.java 1.9 00/02/02
  3. *
  4. * Copyright 1996-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 java.awt.event;
  11. import java.util.EventListener;
  12. /**
  13. * The listener interface for receiving text events.
  14. *
  15. * The class that is interested in processing a text event
  16. * implements this interface. The object created with that
  17. * class is then registered with a component using the
  18. * component's <code>addTextListener</code> method. When the
  19. * component's text changes, the listener object's
  20. * <code>textValueChanged</code> method is invoked.
  21. *
  22. * @author Georges Saab
  23. * @version 1.9 02/02/00
  24. *
  25. * @see TextEvent
  26. * @see <a href="http://java.sun.com/docs/books/tutorial/post1.0/ui/textlistener.html">Tutorial: Writing a Text Listener</a>
  27. * @see <a href="http://www.awl.com/cp/javaseries/jcl1_2.html">Reference: The Java Class Libraries (update file)</a>
  28. *
  29. * @since 1.1
  30. */
  31. public interface TextListener extends EventListener {
  32. /**
  33. * Invoked when the value of the text has changed.
  34. * The code written for this method performs the operations
  35. * that need to occur when text changes.
  36. */
  37. public void textValueChanged(TextEvent e);
  38. }