1. /*
  2. * @(#)TextComponentPeer.java 1.18 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.peer;
  8. import java.awt.Point;
  9. import java.awt.Rectangle;
  10. import java.awt.im.InputMethodRequests;
  11. /**
  12. * The peer interfaces are intended only for use in porting
  13. * the AWT. They are not intended for use by application
  14. * developers, and developers should not implement peers
  15. * nor invoke any of the peer methods directly on the peer
  16. * instances.
  17. */
  18. public interface TextComponentPeer extends ComponentPeer {
  19. void setEditable(boolean editable);
  20. String getText();
  21. void setText(String l);
  22. int getSelectionStart();
  23. int getSelectionEnd();
  24. void select(int selStart, int selEnd);
  25. void setCaretPosition(int pos);
  26. int getCaretPosition();
  27. int getIndexAtPoint(int x, int y);
  28. Rectangle getCharacterBounds(int i);
  29. long filterEvents(long mask);
  30. InputMethodRequests getInputMethodRequests();
  31. }