Package com.teamdev.jxbrowser.dom.event
Class WheelEventParams.Builder
java.lang.Object
com.teamdev.jxbrowser.dom.event.WheelEventParams.Builder
- Enclosing interface:
- WheelEventParams
A builder of
WheelEventParams
.
Builders are created by invoking WheelEventParams.newBuilder()
. Each of the setter methods
modifies the state of the builder and returns the same instance. Builders are not thread-safe
and should not be used concurrently from multiple threads without external synchronization.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Returns a newWheelEventParams
instance built from the current state of this builder.Sets the delta units type.deltaX
(double deltaX) Sets the amount of units to scroll horizontally.deltaY
(double deltaY) Sets the amount of units to scroll vertically.mouseEventParams
(MouseEventParams params) Sets the DOM mouse event parameters.
-
Method Details
-
mouseEventParams
Sets the DOM mouse event parameters.- Parameters:
params
- the DOM mouse event parameters- Returns:
- this builder
-
deltaX
Sets the amount of units to scroll horizontally.- Returns:
- this builder
-
deltaY
Sets the amount of units to scroll vertically.- Returns:
- this builder
-
deltaMode
Sets the delta units type.- Returns:
- this builder
-
build
Returns a newWheelEventParams
instance built from the current state of this builder.- Returns:
- a new
WheelEventParams
instance
-