1 |
/* InputMethodListener.java -- Listen for input method events |
/* InputMethodListener.java -- listen for input method events |
2 |
Copyright (C) 1999 Free Software Foundation, Inc. |
Copyright (C) 1999, 2002 Free Software Foundation, Inc. |
3 |
|
|
4 |
This file is part of GNU Classpath. |
This file is part of GNU Classpath. |
5 |
|
|
38 |
|
|
39 |
package java.awt.event; |
package java.awt.event; |
40 |
|
|
41 |
/** |
import java.util.EventListener; |
|
* This interface is for classes that wish to receive events from an |
|
|
* input method. |
|
|
* |
|
|
* @author Aaron M. Renn (arenn@urbanophile.com) |
|
|
*/ |
|
|
public interface InputMethodListener extends java.util.EventListener |
|
|
{ |
|
|
|
|
|
/** |
|
|
* This method is called when the cursor position within the text is changed. |
|
|
* |
|
|
* @param event The <code>InputMethodEvent</code> indicating the |
|
|
* position change. |
|
|
*/ |
|
|
public abstract void |
|
|
caretPositionChanged(InputMethodEvent event); |
|
|
|
|
|
/*************************************************************************/ |
|
42 |
|
|
43 |
/** |
/** |
44 |
* This method is called when the text is changed. |
* This interface is for classes that wish to receive events from an input |
45 |
* |
* method. For a text component to use input methods, it must also install |
46 |
* @param event The <code>InputMethodEvent</code> indicating the text change. |
* an InputMethodRequests handler. |
47 |
*/ |
* |
48 |
public abstract void |
* @author Aaron M. Renn <arenn@urbanophile.com> |
49 |
inputMethodTextChanged(InputMethodEvent event); |
* @see InputMethodEvent |
50 |
|
* @see InputMethodRequests |
51 |
|
* @since 1.2 |
52 |
|
* @status updated to 1.4 |
53 |
|
*/ |
54 |
|
public interface InputMethodListener extends EventListener |
55 |
|
{ |
56 |
|
/** |
57 |
|
* This method is called when the text is changed. |
58 |
|
* |
59 |
|
* @param event the <code>InputMethodEvent</code> indicating the text change |
60 |
|
*/ |
61 |
|
void inputMethodTextChanged(InputMethodEvent event); |
62 |
|
|
63 |
|
/** |
64 |
|
* This method is called when the cursor position within the text is changed. |
65 |
|
* |
66 |
|
* @param event the <code>InputMethodEvent</code> indicating the change |
67 |
|
*/ |
68 |
|
void caretPositionChanged(InputMethodEvent event); |
69 |
} // interface InputMethodListener |
} // interface InputMethodListener |
|
|
|