Package com.teamdev.jxbrowser.dom.event
Interface WheelEventParams
- All Superinterfaces:
EventParams
,MouseEventParams
,UiEventModifierParams
The DOM wheel event parameters.
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptiondefault MouseEvent.Button
button()
Returns a button pressed during events caused by pressing or releasing one or multiple buttons.default int
Returns the count of consecutive clicks that happened in a short amount of time for mouse events, such as "click", "mouseDown, "mouseUp".default Point
Returns the location of the mouse cursor in the component's coordinate system at the time the event occurred.default WheelEvent.DeltaMode
Returns the delta units type.default double
deltaX()
Returns the amount of units to scroll horizontally.default double
deltaY()
Returns the amount of units to scroll vertically.default boolean
Returnstrue
if the event bubbles up through the DOM.default boolean
Returnstrue
if the event can be canceled, and therefore prevented as if the event never happened.default boolean
Returnstrue
if the event is trusted, and therefore was generated by a user action.default KeyModifiers
Returns the key modifiers that are applied to the event.default com.teamdev.jxbrowser.dom.event.internal.rpc.MouseEventParams
static WheelEventParams.Builder
Creates a newWheelEventParams
builder.default Point
Returns 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.WheelEventParams
self()
Methods inherited from interface com.teamdev.jxbrowser.dom.event.MouseEventParams
offsetLocation, pageLocation
-
Method Details
-
newBuilder
Creates a newWheelEventParams
builder.- Returns:
- a new
WheelEventParams.Builder
instance
-
isBubbles
default boolean isBubbles()Returnstrue
if the event bubbles up through the DOM.- Specified by:
isBubbles
in interfaceEventParams
- Specified by:
isBubbles
in interfaceMouseEventParams
- Specified by:
isBubbles
in interfaceUiEventModifierParams
-
isTrusted
default boolean isTrusted()Returnstrue
if the event is trusted, and therefore was generated by a user action.- Specified by:
isTrusted
in interfaceEventParams
- Specified by:
isTrusted
in interfaceMouseEventParams
- Specified by:
isTrusted
in interfaceUiEventModifierParams
- Since:
- 7.12
-
isCancelable
default boolean isCancelable()Returnstrue
if the event can be canceled, and therefore prevented as if the event never happened.- Specified by:
isCancelable
in interfaceEventParams
- Specified by:
isCancelable
in interfaceMouseEventParams
- Specified by:
isCancelable
in 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
x
field of the result equals 0, regardless of whether the page is scrolled horizontally.- Specified by:
clientLocation
in interfaceMouseEventParams
-
screenLocation
Returns the location of the mouse cursor in the screen's coordinate system at the time the event occurred.- Specified by:
screenLocation
in 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
,mouseout
ormousemove
.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:
button
in 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:
clickCount
in interfaceMouseEventParams
-
deltaX
default double deltaX()Returns the amount of units to scroll horizontally. -
deltaY
default double deltaY()Returns the amount of units to scroll vertically. -
deltaMode
Returns the delta units type. -
keyModifiers
Returns the key modifiers that are applied to the event.- Specified by:
keyModifiers
in interfaceMouseEventParams
- Specified by:
keyModifiers
in interfaceUiEventModifierParams
-
self
-
mouseParams
-