Package com.jbstrap.core.event
Class WheelEvent
java.lang.Object
com.jbstrap.core.event.BaseEvent
com.jbstrap.core.event.BrowserEvent
com.jbstrap.core.event.WheelEvent
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
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGets what units are used for the delta mode.Gets how much did the user scroll horizontally (x-axis)Gets how much did the user scroll vertically (y-axis)Gets how much did the user scroll on the z-axisMethods inherited from class com.jbstrap.core.event.BrowserEvent
fireEvent, getBubbles, getCancelable, getClientId, getComposed, getDefaultPrevented, getDetail, getEventPhase, getIsTrusted, getType
Methods inherited from class com.jbstrap.core.event.BaseEvent
getClient, getComponent, getEventId, getEventType, getSenderId
-
Constructor Details
-
WheelEvent
public WheelEvent()
-
-
Method Details
-
getDeltaX
Gets how much did the user scroll horizontally (x-axis)- Returns:
- The amount of horizontal scrolling
-
getDeltaY
Gets how much did the user scroll vertically (y-axis)- Returns:
- The amount of vertical scrolling
-
getDeltaZ
Gets how much did the user scroll on the z-axis- Returns:
- The amount of scrolling on the z-axis
-
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
-