comparison dwt/events/MouseTrackAdapter.d @ 0:380af2bdd8e5

Upload of whole dwt tree
author Jacob Carlborg <doob@me.com> <jacob.carlborg@gmail.com>
date Sat, 09 Aug 2008 17:00:02 +0200
parents
children ab8b5765e3d1
comparison
equal deleted inserted replaced
-1:000000000000 0:380af2bdd8e5
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 dwt.events.MouseTrackAdapter;
12
13 import dwt.dwthelper.utils;
14
15
16 /**
17 * This adapter class provides default implementations for the
18 * methods described by the <code>MouseTrackListener</code> interface.
19 * <p>
20 * Classes that wish to deal with <code>MouseEvent</code>s which
21 * occur as the mouse pointer passes (or hovers) over controls can
22 * extend this class and override only the methods which they are
23 * interested in.
24 * </p>
25 *
26 * @see MouseTrackListener
27 * @see MouseEvent
28 */
29 public abstract class MouseTrackAdapter implements MouseTrackListener {
30
31 /**
32 * Sent when the mouse pointer passes into the area of
33 * the screen covered by a control.
34 * The default behavior is to do nothing.
35 *
36 * @param e an event containing information about the mouse enter
37 */
38 public void mouseEnter(MouseEvent e) {
39 }
40
41 /**
42 * Sent when the mouse pointer passes out of the area of
43 * the screen covered by a control.
44 * The default behavior is to do nothing.
45 *
46 * @param e an event containing information about the mouse exit
47 */
48 public void mouseExit(MouseEvent e) {
49 }
50
51 /**
52 * Sent when the mouse pointer hovers (that is, stops moving
53 * for an (operating system specified) period of time) over
54 * a control.
55 * The default behavior is to do nothing.
56 *
57 * @param e an event containing information about the hover
58 */
59 public void mouseHover(MouseEvent e) {
60 }
61 }