Top Description Constructors Methods
org.eclipse.swt.events

public abstract Class MouseAdapter

extends Object
implements MouseListener
Class Inheritance
All Implemented Interfaces
org.eclipse.swt.events.MouseListener, org.eclipse.swt.internal.SWTEventListener, java.util.EventListener

This adapter class provides default implementations for the methods described by the MouseListener interface.

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.

See Also
MouseListener, MouseEvent, Sample code and further information

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
mouseDoubleClick(MouseEvent
an event containing information about the mouse double click
e
)

Implements org.eclipse.swt.events.MouseListener.mouseDoubleClick.

Sent when a mouse button is pressed twice within the (operating system specified) double click period.
public void
mouseDown(MouseEvent
an event containing information about the mouse button press
e
)

Implements org.eclipse.swt.events.MouseListener.mouseDown.

Sent when a mouse button is pressed.
public void
mouseUp(MouseEvent
an event containing information about the mouse button release
e
)

Implements org.eclipse.swt.events.MouseListener.mouseUp.

Sent when a mouse button is released.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

MouseAdapterback to summary
public MouseAdapter()

Method Detail

mouseDoubleClickback to summary
public void mouseDoubleClick(MouseEvent e)

Implements org.eclipse.swt.events.MouseListener.mouseDoubleClick.

Sent when a mouse button is pressed twice within the (operating system specified) double click period. The default behavior is to do nothing.

Parameters
e:MouseEvent

an event containing information about the mouse double click

Annotations
@Override
See Also
org.eclipse.swt.widgets.Display#getDoubleClickTime()
mouseDownback to summary
public void mouseDown(MouseEvent e)

Implements org.eclipse.swt.events.MouseListener.mouseDown.

Sent when a mouse button is pressed. The default behavior is to do nothing.

Parameters
e:MouseEvent

an event containing information about the mouse button press

Annotations
@Override
mouseUpback to summary
public void mouseUp(MouseEvent e)

Implements org.eclipse.swt.events.MouseListener.mouseUp.

Sent when a mouse button is released. The default behavior is to do nothing.

Parameters
e:MouseEvent

an event containing information about the mouse button release

Annotations
@Override