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