Interface MouseWheelListener

All Superinterfaces:
EventListener, SWTEventListener
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface MouseWheelListener extends SWTEventListener
Classes which implement this interface provide a method that deals with the event that is generated as the mouse wheel is scrolled.

After creating an instance of a class that implements this interface it can be added to a control using the addMouseWheelListener method and removed using the removeMouseWheelListener method. When the mouse wheel is scrolled the mouseScrolled method will be invoked.

Since:
3.3
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Sent when the mouse wheel is scrolled.
  • Method Details

    • mouseScrolled

      void mouseScrolled(MouseEvent e)
      Sent when the mouse wheel is scrolled.
      Parameters:
      e - an event containing information about the mouse wheel action