KickJava   Java API By Example, From Geeks To Geeks.

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


1 /*
2  * @(#)PopupMenuListener.java 1.9 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 import java.util.EventListener JavaDoc;
10
11 /**
12  * A popup menu listener
13  *
14  * @version 1.9 12/19/03
15  * @author Arnaud Weber
16  */

17 public interface PopupMenuListener extends EventListener JavaDoc {
18     
19     /**
20      * This method is called before the popup menu becomes visible
21      */

22     void popupMenuWillBecomeVisible(PopupMenuEvent JavaDoc e);
23
24     /**
25      * This method is called before the popup menu becomes invisible
26      * Note that a JPopupMenu can become invisible any time
27      */

28     void popupMenuWillBecomeInvisible(PopupMenuEvent JavaDoc e);
29
30     /**
31      * This method is called when the popup menu is canceled
32      */

33     void popupMenuCanceled(PopupMenuEvent JavaDoc e);
34 }
35
36
Popular Tags