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