Top Description Constructors Methods
org.eclipse.swt.events

public abstract Class MouseTrackAdapter

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

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

Classes that wish to deal with MouseEvents which occur as the mouse pointer passes (or hovers) over controls can extend this class and override only the methods which they are interested in.

An alternative to this class are the static helper methods MouseTrackListener#mouseEnterAdapter(java.util.function.Consumer), MouseTrackListener#mouseExitAdapter(java.util.function.Consumer) and MouseTrackListener#mouseHoverAdapter(java.util.function.Consumer), which accept a lambda expression or a method reference that implements the event consumer.

See Also
MouseTrackListener, MouseEvent, Sample code and further information

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
mouseEnter(MouseEvent
an event containing information about the mouse enter
e
)

Implements org.eclipse.swt.events.MouseTrackListener.mouseEnter.

Sent when the mouse pointer passes into the area of the screen covered by a control.
public void
mouseExit(MouseEvent
an event containing information about the mouse exit
e
)

Implements org.eclipse.swt.events.MouseTrackListener.mouseExit.

Sent when the mouse pointer passes out of the area of the screen covered by a control.
public void
mouseHover(MouseEvent
an event containing information about the hover
e
)

Implements org.eclipse.swt.events.MouseTrackListener.mouseHover.

Sent when the mouse pointer hovers (that is, stops moving for an (operating system specified) period of time) over a control.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

MouseTrackAdapterback to summary
public MouseTrackAdapter()

Method Detail

mouseEnterback to summary
public void mouseEnter(MouseEvent e)

Implements org.eclipse.swt.events.MouseTrackListener.mouseEnter.

Sent when the mouse pointer passes into the area of the screen covered by a control. The default behavior is to do nothing.

Parameters
e:MouseEvent

an event containing information about the mouse enter

Annotations
@Override
mouseExitback to summary
public void mouseExit(MouseEvent e)

Implements org.eclipse.swt.events.MouseTrackListener.mouseExit.

Sent when the mouse pointer passes out of the area of the screen covered by a control. The default behavior is to do nothing.

Parameters
e:MouseEvent

an event containing information about the mouse exit

Annotations
@Override
mouseHoverback to summary
public void mouseHover(MouseEvent e)

Implements org.eclipse.swt.events.MouseTrackListener.mouseHover.

Sent when the mouse pointer hovers (that is, stops moving for an (operating system specified) period of time) over a control. The default behavior is to do nothing.

Parameters
e:MouseEvent

an event containing information about the hover

Annotations
@Override