1. /*
  2. * @(#)ChoicePeer.java 1.12 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. import java.awt.*;
  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 ChoicePeer extends ComponentPeer {
  17. void add(String item, int index);
  18. void remove(int index);
  19. void select(int index);
  20. /*
  21. * DEPRECATED: Replaced by add(String, int).
  22. */
  23. void addItem(String item, int index);
  24. }