Package org.eclipse.swt.events
Class MouseAdapter
- java.lang.Object
-
- org.eclipse.swt.events.MouseAdapter
-
- All Implemented Interfaces:
MouseListener
public abstract class MouseAdapter extends java.lang.Object implements MouseListener
This adapter class provides default implementations for the methods described by theMouseListenerinterface.Classes that wish to deal with
MouseEvents 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:
MouseListener,MouseEvent
-
-
Constructor Summary
Constructors Constructor Description MouseAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidmouseDoubleClick(MouseEvent e)Sent when a mouse button is pressed twice within the (operating system specified) double click period.voidmouseDown(MouseEvent e)Sent when a mouse button is pressed.voidmouseUp(MouseEvent e)Sent when a mouse button is released.
-
-
-
Method Detail
-
mouseDoubleClick
public void mouseDoubleClick(MouseEvent e)
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:
mouseDoubleClickin interfaceMouseListener- Parameters:
e- an event containing information about the mouse double click- See Also:
Display.getDoubleClickTime()
-
mouseDown
public void mouseDown(MouseEvent e)
Sent when a mouse button is pressed. The default behavior is to do nothing.- Specified by:
mouseDownin interfaceMouseListener- Parameters:
e- an event containing information about the mouse button press
-
mouseUp
public void mouseUp(MouseEvent e)
Sent when a mouse button is released. The default behavior is to do nothing.- Specified by:
mouseUpin interfaceMouseListener- Parameters:
e- an event containing information about the mouse button release
-
-