Mercurial > projects > dwt-mac
comparison dwt/events/MouseAdapter.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.MouseAdapter; | |
12 | |
13 import dwt.dwthelper.utils; | |
14 | |
15 | |
16 /** | |
17 * This adapter class provides default implementations for the | |
18 * methods described by the <code>MouseListener</code> interface. | |
19 * <p> | |
20 * Classes that wish to deal with <code>MouseEvent</code>s | |
21 * which occur as mouse buttons are pressed and released can | |
22 * extend this class and override only the methods which they are | |
23 * interested in. | |
24 * </p> | |
25 * | |
26 * @see MouseListener | |
27 * @see MouseEvent | |
28 */ | |
29 public abstract class MouseAdapter implements MouseListener { | |
30 | |
31 /** | |
32 * Sent when a mouse button is pressed twice within the | |
33 * (operating system specified) double click period. | |
34 * The default behavior is to do nothing. | |
35 * | |
36 * @param e an event containing information about the mouse double click | |
37 * | |
38 * @see dwt.widgets.Display#getDoubleClickTime() | |
39 */ | |
40 public void mouseDoubleClick(MouseEvent e) { | |
41 } | |
42 | |
43 /** | |
44 * Sent when a mouse button is pressed. | |
45 * The default behavior is to do nothing. | |
46 * | |
47 * @param e an event containing information about the mouse button press | |
48 */ | |
49 public void mouseDown(MouseEvent e) { | |
50 } | |
51 | |
52 /** | |
53 * Sent when a mouse button is released. | |
54 * The default behavior is to do nothing. | |
55 * | |
56 * @param e an event containing information about the mouse button release | |
57 */ | |
58 public void mouseUp(MouseEvent e) { | |
59 } | |
60 } |