1. /*
  2. * @(#)TextComponentPeer.java 1.9 01/11/29
  3. *
  4. * Copyright 2002 Sun Microsystems, Inc. All rights reserved.
  5. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  6. */
  7. package java.awt.peer;
  8. /**
  9. * The peer interfaces are intended only for use in porting
  10. * the AWT. They are not intended for use by application
  11. * developers, and developers should not implement peers
  12. * nor invoke any of the peer methods directly on the peer
  13. * instances.
  14. */
  15. public interface TextComponentPeer extends ComponentPeer {
  16. void setEditable(boolean editable);
  17. String getText();
  18. void setText(String l);
  19. int getSelectionStart();
  20. int getSelectionEnd();
  21. void select(int selStart, int selEnd);
  22. void setCaretPosition(int pos);
  23. int getCaretPosition();
  24. }