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