1. /*
  2. * @(#)MenuListener.java 1.7 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 javax.swing.event;
  8. import java.util.EventListener;
  9. /**
  10. * Defines a listener for menu events.
  11. *
  12. * @version 1.7 11/29/01
  13. * @author Georges Saab
  14. */
  15. public interface MenuListener extends EventListener {
  16. /**
  17. * Invoked when a menu item is selected.
  18. *
  19. * @param e a MenuEvent object
  20. */
  21. void menuSelected(MenuEvent e);
  22. /**
  23. * Invoked when the menu selection changes.
  24. *
  25. * @param e a MenuEvent object
  26. */
  27. void menuDeselected(MenuEvent e);
  28. /**
  29. * Invoked when the menu selection is canceled.
  30. *
  31. * @param e a MenuEvent object
  32. */
  33. void menuCanceled(MenuEvent e);
  34. }