01: /*******************************************************************************
02: * Copyright (c) 2000, 2007 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 events that are generated when the
17: * platform-specific trigger for showing a context menu is
18: * detected.
19: * <p>
20: * After creating an instance of a class that implements
21: * this interface it can be added to a control or TrayItem
22: * using the <code>addMenuDetectListener</code> method and
23: * removed using the <code>removeMenuDetectListener</code> method.
24: * When the context menu trigger occurs, the
25: * <code>menuDetected</code> method will be invoked.
26: * </p>
27: *
28: * @see MenuDetectEvent
29: *
30: * @since 3.3
31: */
32: public interface MenuDetectListener extends SWTEventListener {
33:
34: /**
35: * Sent when the platform-dependent trigger for showing a menu item is detected.
36: *
37: * @param e an event containing information about the menu detect
38: */
39: public void menuDetected(MenuDetectEvent e);
40: }
|