- /*
- * @(#)MenuListener.java 1.7 01/11/29
- *
- * Copyright 2002 Sun Microsystems, Inc. All rights reserved.
- * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
- */
- package javax.swing.event;
-
-
- import java.util.EventListener;
-
-
- /**
- * Defines a listener for menu events.
- *
- * @version 1.7 11/29/01
- * @author Georges Saab
- */
- public interface MenuListener extends EventListener {
- /**
- * Invoked when a menu item is selected.
- *
- * @param e a MenuEvent object
- */
- void menuSelected(MenuEvent e);
- /**
- * Invoked when the menu selection changes.
- *
- * @param e a MenuEvent object
- */
- void menuDeselected(MenuEvent e);
- /**
- * Invoked when the menu selection is canceled.
- *
- * @param e a MenuEvent object
- */
- void menuCanceled(MenuEvent e);
- }
-