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. package java.awt.event;
  8. import java.util.EventListener;
  9. /**
  10. * The listener interface for receiving input method events. A text editing
  11. * component has to install an input method event listener in order to work
  12. * with input methods.
  13. *
  14. * <p>
  15. * The text editing component also has to provide an instance of InputMethodRequests.
  16. *
  17. * @author JavaSoft Asia/Pacific
  18. * @version 1.11 12/19/03
  19. * @see InputMethodEvent
  20. * @see java.awt.im.InputMethodRequests
  21. * @since 1.2
  22. */
  23. public interface InputMethodListener extends EventListener {
  24. /**
  25. * Invoked when the text entered through an input method has changed.
  26. */
  27. void inputMethodTextChanged(InputMethodEvent event);
  28. /**
  29. * Invoked when the caret within composed text has changed.
  30. */
  31. void caretPositionChanged(InputMethodEvent event);
  32. }