Package org.eclipse.swt.events
Class MouseAdapter
java.lang.Object
org.eclipse.swt.events.MouseAdapter
- All Implemented Interfaces:
MouseListener
This adapter class provides default implementations for the
methods described by the
MouseListener
interface.
Classes that wish to deal with MouseEvent
s
which occur as mouse buttons are pressed and released can
extend this class and override only the methods which they are
interested in.
- Since:
- 1.1
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Sent when a mouse button is pressed twice within the (operating system specified) double click period.void
Sent when a mouse button is pressed.void
Sent when a mouse button is released.
-
Constructor Details
-
MouseAdapter
public MouseAdapter()
-
-
Method Details
-
mouseDoubleClick
Sent when a mouse button is pressed twice within the (operating system specified) double click period. The default behavior is to do nothing.- Specified by:
mouseDoubleClick
in interfaceMouseListener
- Parameters:
e
- an event containing information about the mouse double click- See Also:
-
mouseDown
Sent when a mouse button is pressed. The default behavior is to do nothing.- Specified by:
mouseDown
in interfaceMouseListener
- Parameters:
e
- an event containing information about the mouse button press
-
mouseUp
Sent when a mouse button is released. The default behavior is to do nothing.- Specified by:
mouseUp
in interfaceMouseListener
- Parameters:
e
- an event containing information about the mouse button release
-