KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > java > awt > event > TextListener


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
8 package java.awt.event;
9
10 import java.util.EventListener JavaDoc;
11
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.12 12/19/03
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 JavaDoc {
32
33     /**
34      * Invoked when the value of the text has changed.
35      * The code written for this method performs the operations
36      * that need to occur when text changes.
37      */

38     public void textValueChanged(TextEvent JavaDoc e);
39
40 }
41
Popular Tags