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