KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > javax > swing > event > MenuListener


1 /*
2  * @(#)MenuListener.java 1.12 03/12/19
3  *
4  * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
5  * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
6  */

7 package javax.swing.event;
8
9
10 import java.util.EventListener JavaDoc;
11  
12  
13 /**
14  * Defines a listener for menu events.
15  *
16  * @version 1.12 12/19/03
17  * @author Georges Saab
18  */

19 public interface MenuListener extends EventListener JavaDoc {
20     /**
21      * Invoked when a menu is selected.
22      *
23      * @param e a MenuEvent object
24      */

25     void menuSelected(MenuEvent JavaDoc e);
26     /**
27      * Invoked when the menu is deselected.
28      *
29      * @param e a MenuEvent object
30      */

31     void menuDeselected(MenuEvent JavaDoc e);
32     /**
33      * Invoked when the menu is canceled.
34      *
35      * @param e a MenuEvent object
36      */

37     void menuCanceled(MenuEvent JavaDoc e);
38 }
39
40
Popular Tags