public interface WheelEventParams extends MouseEventParams
Modifier and Type | Interface and Description |
---|---|
static class |
WheelEventParams.Builder
A builder of
WheelEventParams . |
Modifier and Type | Method and Description |
---|---|
default MouseEvent.Button |
button()
Returns a button pressed during events caused by pressing or releasing one or multiple
buttons.
|
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".
|
default Point |
clientLocation()
Returns the location of the mouse cursor in the component's coordinate system at the time the
event occurred.
|
default WheelEvent.DeltaMode |
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 |
isBubbles()
Returns
true if the event bubbles up through the DOM. |
default boolean |
isCancelable()
Returns
true if the event can be canceled, and therefore prevented as if the event
never happened. |
default KeyModifiers |
keyModifiers()
Returns the key modifiers that are applied to the event.
|
static WheelEventParams.Builder |
newBuilder()
Creates a new
WheelEventParams builder. |
default Point |
screenLocation()
Returns the location of the mouse cursor in the screen's coordinate system at the time the
event occurred.
|
offsetLocation
static WheelEventParams.Builder newBuilder()
WheelEventParams
builder.newBuilder
in interface EventParams
newBuilder
in interface MouseEventParams
newBuilder
in interface UiEventModifierParams
WheelEventParams.Builder
instancedefault boolean isBubbles()
true
if the event bubbles up through the DOM.isBubbles
in interface EventParams
isBubbles
in interface MouseEventParams
isBubbles
in interface UiEventModifierParams
default boolean isCancelable()
true
if the event can be canceled, and therefore prevented as if the event
never happened.isCancelable
in interface EventParams
isCancelable
in interface MouseEventParams
isCancelable
in interface UiEventModifierParams
default Point clientLocation()
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.
clientLocation
in interface MouseEventParams
default Point screenLocation()
screenLocation
in interface MouseEventParams
default MouseEvent.Button button()
mouseenter
, mouseleave
, mouseover
, mouseout
or mousemove
.
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.
button
in interface MouseEventParams
default int clickCount()
For all other UI events returns 0.
clickCount
in interface MouseEventParams
default double deltaX()
default double deltaY()
default WheelEvent.DeltaMode deltaMode()
default KeyModifiers keyModifiers()
keyModifiers
in interface MouseEventParams
keyModifiers
in interface UiEventModifierParams