1. /*
  2. * @(#)TextFieldPeer.java 1.16 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 TextFieldPeer extends TextComponentPeer {
  17. void setEchoChar(char echoChar);
  18. Dimension getPreferredSize(int columns);
  19. Dimension getMinimumSize(int columns);
  20. /**
  21. * DEPRECATED: Replaced by setEchoChar(char echoChar).
  22. */
  23. void setEchoCharacter(char c);
  24. /**
  25. * DEPRECATED: Replaced by getPreferredSize(int).
  26. */
  27. Dimension preferredSize(int cols);
  28. /**
  29. * DEPRECATED: Replaced by getMinimumSize(int).
  30. */
  31. Dimension minimumSize(int cols);
  32. }