1. /*
  2. * @(#)TextFieldPeer.java 1.13 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.Dimension;
  12. /**
  13. * The peer interfaces are intended only for use in porting
  14. * the AWT. They are not intended for use by application
  15. * developers, and developers should not implement peers
  16. * nor invoke any of the peer methods directly on the peer
  17. * instances.
  18. */
  19. public interface TextFieldPeer extends TextComponentPeer {
  20. void setEchoChar(char echoChar);
  21. Dimension getPreferredSize(int columns);
  22. Dimension getMinimumSize(int columns);
  23. /**
  24. * DEPRECATED: Replaced by setEchoChar(char echoChar).
  25. */
  26. void setEchoCharacter(char c);
  27. /**
  28. * DEPRECATED: Replaced by getPreferredSize(int).
  29. */
  30. Dimension preferredSize(int cols);
  31. /**
  32. * DEPRECATED: Replaced by getMinimumSize(int).
  33. */
  34. Dimension minimumSize(int cols);
  35. }