Mercurial > projects > dwt-linux
comparison dwt/events/MouseTrackAdapter.d @ 9:ad2b69216039
moved org.eclipse.swt to dwt
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sat, 05 Jan 2008 17:39:49 +0100 |
parents | org/eclipse/swt/events/MouseTrackAdapter.d@5dfd6e42e2ef |
children | 63c023465156 |
comparison
equal
deleted
inserted
replaced
8:a1f832ca7d17 | 9:ad2b69216039 |
---|---|
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 } |