3
|
1 /*******************************************************************************
|
|
2 * Copyright (c) 2000, 2004 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 module org.eclipse.swt.events.MouseTrackAdapter;
|
|
12
|
|
13 import org.eclipse.swt.events.MouseTrackListener;
|
|
14
|
|
15 /**
|
|
16 * This adapter class provides default implementations for the
|
|
17 * methods described by the <code>MouseTrackListener</code> interface.
|
|
18 * <p>
|
|
19 * Classes that wish to deal with <code>MouseEvent</code>s which
|
|
20 * occur as the mouse pointer passes (or hovers) over controls can
|
|
21 * extend this class and override only the methods which they are
|
|
22 * interested in.
|
|
23 * </p>
|
|
24 *
|
|
25 * @see MouseTrackListener
|
|
26 * @see MouseEvent
|
|
27 */
|
|
28 public abstract class MouseTrackAdapter : MouseTrackListener {
|
|
29
|
|
30 /**
|
|
31 * Sent when the mouse pointer passes into the area of
|
|
32 * the screen covered by a control.
|
|
33 * The default behavior is to do nothing.
|
|
34 *
|
|
35 * @param e an event containing information about the mouse enter
|
|
36 */
|
|
37 public void mouseEnter(MouseEvent e) {
|
|
38 }
|
|
39
|
|
40 /**
|
|
41 * Sent when the mouse pointer passes out of the area of
|
|
42 * the screen covered by a control.
|
|
43 * The default behavior is to do nothing.
|
|
44 *
|
|
45 * @param e an event containing information about the mouse exit
|
|
46 */
|
|
47 public void mouseExit(MouseEvent e) {
|
|
48 }
|
|
49
|
|
50 /**
|
|
51 * Sent when the mouse pointer hovers (that is, stops moving
|
|
52 * for an (operating system specified) period of time) over
|
|
53 * a control.
|
|
54 * The default behavior is to do nothing.
|
|
55 *
|
|
56 * @param e an event containing information about the hover
|
|
57 */
|
|
58 public void mouseHover(MouseEvent e) {
|
|
59 }
|
|
60 }
|