KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > swt > events > MenuListener


1 /*******************************************************************************
2  * Copyright (c) 2000, 2005 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.swt.events;
12
13
14 import org.eclipse.swt.internal.SWTEventListener;
15
16 /**
17  * Classes which implement this interface provide methods
18  * that deal with the hiding and showing of menus.
19  * <p>
20  * After creating an instance of a class that implements
21  * this interface it can be added to a menu using the
22  * <code>addMenuListener</code> method and removed using
23  * the <code>removeMenuListener</code> method. When the
24  * menu is hidden or shown, the appropriate method will
25  * be invoked.
26  * </p>
27  *
28  * @see MenuAdapter
29  * @see MenuEvent
30  */

31 public interface MenuListener extends SWTEventListener {
32
33 /**
34  * Sent when a menu is hidden.
35  *
36  * @param e an event containing information about the menu operation
37  */

38 public void menuHidden(MenuEvent e);
39
40 /**
41  * Sent when a menu is shown.
42  *
43  * @param e an event containing information about the menu operation
44  */

45 public void menuShown(MenuEvent e);
46 }
47
Popular Tags