KickJava   Java API By Example, From Geeks To Geeks.

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


1 /*
2  * @(#)InputMethodListener.java 1.11 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 input method events. A text editing
14  * component has to install an input method event listener in order to work
15  * with input methods.
16  *
17  * <p>
18  * The text editing component also has to provide an instance of InputMethodRequests.
19  *
20  * @author JavaSoft Asia/Pacific
21  * @version 1.11 12/19/03
22  * @see InputMethodEvent
23  * @see java.awt.im.InputMethodRequests
24  * @since 1.2
25  */

26
27 public interface InputMethodListener extends EventListener JavaDoc {
28
29     /**
30      * Invoked when the text entered through an input method has changed.
31      */

32     void inputMethodTextChanged(InputMethodEvent JavaDoc event);
33
34     /**
35      * Invoked when the caret within composed text has changed.
36      */

37     void caretPositionChanged(InputMethodEvent JavaDoc event);
38
39 }
40
Popular Tags