1. /*
  2. * @(#)InputMethodListener.java 1.8 00/02/02
  3. *
  4. * Copyright 1997-2000 Sun Microsystems, Inc. All Rights Reserved.
  5. *
  6. * This software is the proprietary information of Sun Microsystems, Inc.
  7. * Use is subject to license terms.
  8. *
  9. */
  10. package java.awt.event;
  11. import java.util.EventListener;
  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.8 02/02/00
  22. * @see InputMethodEvent
  23. * @see java.awt.im.InputMethodRequests
  24. * @since 1.2
  25. */
  26. public interface InputMethodListener extends EventListener {
  27. /**
  28. * Invoked when the text entered through an input method has changed.
  29. */
  30. void inputMethodTextChanged(InputMethodEvent event);
  31. /**
  32. * Invoked when the caret within composed text has changed.
  33. */
  34. void caretPositionChanged(InputMethodEvent event);
  35. }