Package com.teamdev.jxbrowser.dom.event
Interface WheelEventParams
- All Superinterfaces:
EventParams,MouseEventParams,UiEventModifierParams
The DOM wheel event parameters.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptiondefault MouseEvent.Buttonbutton()Returns a button pressed during events caused by pressing or releasing one or multiple buttons.default intReturns the count of consecutive clicks that happened in a short amount of time for mouse events, such as "click", "mouseDown, "mouseUp".default PointReturns the location of the mouse cursor in the component's coordinate system at the time the event occurred.default WheelEvent.DeltaModeReturns the delta units type.default doubledeltaX()Returns the number of units to scroll horizontally.default doubledeltaY()Returns the number of units to scroll vertically.default booleanReturnstrueif the event bubbles up through the DOM.default booleanReturnstrueif the event can be canceled, and therefore prevented as if the event never happened.default booleanReturnstrueif the event is trusted, and therefore was generated by a user action.default KeyModifiersReturns the key modifiers that are applied to the event.default com.teamdev.jxbrowser.dom.event.internal.rpc.MouseEventParamsstatic WheelEventParams.BuilderCreates a newWheelEventParamsbuilder.default PointReturns the location of the mouse cursor in the screen's coordinate system at the time the event occurred.default com.teamdev.jxbrowser.dom.event.internal.rpc.WheelEventParamsself()Methods inherited from interface com.teamdev.jxbrowser.dom.event.MouseEventParams
offsetLocation, pageLocation
-
Method Details
-
newBuilder
Creates a newWheelEventParamsbuilder.- Returns:
- a new
WheelEventParams.Builderinstance
-
isBubbles
default boolean isBubbles()Returnstrueif the event bubbles up through the DOM.- Specified by:
isBubblesin interfaceEventParams- Specified by:
isBubblesin interfaceMouseEventParams- Specified by:
isBubblesin interfaceUiEventModifierParams
-
isTrusted
default boolean isTrusted()Returnstrueif the event is trusted, and therefore was generated by a user action.- Specified by:
isTrustedin interfaceEventParams- Specified by:
isTrustedin interfaceMouseEventParams- Specified by:
isTrustedin interfaceUiEventModifierParams- Since:
- 7.12
-
isCancelable
default boolean isCancelable()Returnstrueif the event can be canceled, and therefore prevented as if the event never happened.- Specified by:
isCancelablein interfaceEventParams- Specified by:
isCancelablein interfaceMouseEventParams- Specified by:
isCancelablein interfaceUiEventModifierParams
-
clientLocation
Returns the location of the mouse cursor in the component's coordinate system at the time the event occurred.For example, clicking in the top-left corner of the client area will always result in that the
xfield of the result equals 0, regardless of whether the page is scrolled horizontally.- Specified by:
clientLocationin interfaceMouseEventParams
-
screenLocation
Returns the location of the mouse cursor in the screen's coordinate system at the time the event occurred.- Specified by:
screenLocationin interfaceMouseEventParams
-
button
Returns a button pressed during events caused by pressing or releasing one or multiple buttons. As such, it is not reliable for events such asmouseenter,mouseleave,mouseover,mouseoutormousemove.Users may change the configuration of buttons on their pointing device so that if an event's button property is
MouseEvent.Button.MAIN(left), it may not have been caused by the button that is physically left–most on the pointing device; however, it should behave as if the left button was clicked in the standard button layout.- Specified by:
buttonin interfaceMouseEventParams
-
clickCount
default int clickCount()Returns the count of consecutive clicks that happened in a short amount of time for mouse events, such as "click", "mouseDown, "mouseUp".For all other UI events returns 0.
- Specified by:
clickCountin interfaceMouseEventParams
-
deltaX
default double deltaX()Returns the number of units to scroll horizontally. -
deltaY
default double deltaY()Returns the number of units to scroll vertically. -
deltaMode
Returns the delta units type. -
keyModifiers
Returns the key modifiers that are applied to the event.- Specified by:
keyModifiersin interfaceMouseEventParams- Specified by:
keyModifiersin interfaceUiEventModifierParams
-
self
-
mouseParams
-