/[classpath]/classpath/java/awt/event/InputMethodListener.java
ViewVC logotype

Diff of /classpath/java/awt/event/InputMethodListener.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.4 by mark, Tue Jan 22 22:26:59 2002 UTC revision 1.5 by ericb, Sat Mar 30 12:02:30 2002 UTC
# Line 1  Line 1 
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    
# Line 38  exception statement from your version. * Line 38  exception statement from your version. *
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
   

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26