1. /*
  2. * @(#)MenuItemPeer.java 1.15 03/01/23
  3. *
  4. * Copyright 2003 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 MenuItemPeer extends MenuComponentPeer {
  16. void setLabel(String label);
  17. void setEnabled(boolean b);
  18. /**
  19. * DEPRECATED: Replaced by setEnabled(boolean).
  20. */
  21. void enable();
  22. /**
  23. * DEPRECATED: Replaced by setEnabled(boolean).
  24. */
  25. void disable();
  26. }