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