public interface MouseTrackListener extends SWTEventListener
After creating an instance of a class that implements
this interface it can be added to a control using the
addMouseTrackListener
method and removed using
the removeMouseTrackListener
method. When the
mouse pointer passes into or out of the area of the screen
covered by a control or pauses while over a control, the
appropriate method will be invoked.
MouseTrackAdapter
,
MouseEvent
Modifier and Type | Method and Description |
---|---|
void |
mouseEnter(MouseEvent e)
Sent when the mouse pointer passes into the area of
the screen covered by a control.
|
static MouseTrackListener |
mouseEnterAdapter(Consumer<MouseEvent> c)
Static helper method to create a
MouseTrackListener for the
mouseEnter(MouseEvent e) ) method, given a lambda expression or a method reference. |
void |
mouseExit(MouseEvent e)
Sent when the mouse pointer passes out of the area of
the screen covered by a control.
|
static MouseTrackListener |
mouseExitAdapter(Consumer<MouseEvent> c)
Static helper method to create a
MouseTrackListener for the
mouseExit(MouseEvent e) ) method, given a lambda expression or a method reference. |
void |
mouseHover(MouseEvent e)
Sent when the mouse pointer hovers (that is, stops moving
for an (operating system specified) period of time) over
a control.
|
static MouseTrackListener |
mouseHoverAdapter(Consumer<MouseEvent> c)
Static helper method to create a
MouseTrackListener for the
mouseHover(MouseEvent e) ) method, given a lambda expression or a method reference. |
void mouseEnter(MouseEvent e)
e
- an event containing information about the mouse entervoid mouseExit(MouseEvent e)
e
- an event containing information about the mouse exitvoid mouseHover(MouseEvent e)
e
- an event containing information about the hoverstatic MouseTrackListener mouseEnterAdapter(Consumer<MouseEvent> c)
MouseTrackListener
for the
mouseEnter(MouseEvent e)
) method, given a lambda expression or a method reference.c
- the consumer of the eventstatic MouseTrackListener mouseExitAdapter(Consumer<MouseEvent> c)
MouseTrackListener
for the
mouseExit(MouseEvent e)
) method, given a lambda expression or a method reference.c
- the consumer of the eventstatic MouseTrackListener mouseHoverAdapter(Consumer<MouseEvent> c)
MouseTrackListener
for the
mouseHover(MouseEvent e)
) method, given a lambda expression or a method reference.c
- the consumer of the event
Copyright (c) 2000, 2018 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.