1. /*
  2. * @(#)TextAreaPeer.java 1.17 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.Dimension;
  9. /**
  10. * The peer interfaces are intended only for use in porting
  11. * the AWT. They are not intended for use by application
  12. * developers, and developers should not implement peers
  13. * nor invoke any of the peer methods directly on the peer
  14. * instances.
  15. */
  16. public interface TextAreaPeer extends TextComponentPeer {
  17. void insert(String text, int pos);
  18. void replaceRange(String text, int start, int end);
  19. Dimension getPreferredSize(int rows, int columns);
  20. Dimension getMinimumSize(int rows, int columns);
  21. /**
  22. * DEPRECATED: Replaced by insert(String, int).
  23. */
  24. void insertText(String txt, int pos);
  25. /**
  26. * DEPRECATED: Replaced by ReplaceRange(String, int, int).
  27. */
  28. void replaceText(String txt, int start, int end);
  29. /**
  30. * DEPRECATED: Replaced by getPreferredSize(int, int).
  31. */
  32. Dimension preferredSize(int rows, int cols);
  33. /**
  34. * DEPRECATED: Replaced by getMinimumSize(int, int).
  35. */
  36. Dimension minimumSize(int rows, int cols);
  37. }