Class WheelEvent


public class WheelEvent extends BrowserEvent
This class contains the data about the wheel events. These are the following:
  • The client on which the event occurred
  • The ID of the component on which the event occurred
  • The event type
  • The instance of the component, on which the event occurred
  • The event's unique ID
  • If the event is trusted
  • The amount of mouse clicks
  • The event phase
  • If the event is bubbleable
  • If the event can prevent the default operation
  • Marks if the event had defaultPrevented() called
  • If the event is composed or not
  • The ID of the client, on which the event occurred
Since:
4.0
Author:
JBStrap
  • Constructor Details

    • WheelEvent

      public WheelEvent()
  • Method Details

    • getDeltaX

      public Long getDeltaX()
      Gets how much did the user scroll horizontally (x-axis)
      Returns:
      The amount of horizontal scrolling
    • getDeltaY

      public Long getDeltaY()
      Gets how much did the user scroll vertically (y-axis)
      Returns:
      The amount of vertical scrolling
    • getDeltaZ

      public Long getDeltaZ()
      Gets how much did the user scroll on the z-axis
      Returns:
      The amount of scrolling on the z-axis
    • getDeltaMode

      public Long getDeltaMode()
      Gets what units are used for the delta mode.
      Returns:
      A numerical value, indicating the delta value.
      Possible values:
      • 0 = pixels
      • 1 = lines
      • 2 = pages