01: /*******************************************************************************
02: * Copyright (c) 2000, 2005 IBM Corporation and others.
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * IBM Corporation - initial API and implementation
10: *******************************************************************************/package org.eclipse.swt.events;
11:
12: import org.eclipse.swt.internal.SWTEventListener;
13:
14: /**
15: * Classes which implement this interface provide methods
16: * that deal with the hiding and showing of menus.
17: * <p>
18: * After creating an instance of a class that implements
19: * this interface it can be added to a menu using the
20: * <code>addMenuListener</code> method and removed using
21: * the <code>removeMenuListener</code> method. When the
22: * menu is hidden or shown, the appropriate method will
23: * be invoked.
24: * </p>
25: *
26: * @see MenuAdapter
27: * @see MenuEvent
28: */
29: public interface MenuListener extends SWTEventListener {
30:
31: /**
32: * Sent when a menu is hidden.
33: *
34: * @param e an event containing information about the menu operation
35: */
36: public void menuHidden(MenuEvent e);
37:
38: /**
39: * Sent when a menu is shown.
40: *
41: * @param e an event containing information about the menu operation
42: */
43: public void menuShown(MenuEvent e);
44: }
|