@DOMObjectAttribute @DOMNameAttribute(name="WheelEvent") public class WheelEvent extends MouseEvent
The WheelEvent interface provides specific contextual information associated with wheel events. To create an instance of the WheelEvent interface, use the WheelEvent constructor, passing an optional WheelEventInit dictionary.
Modifier and Type | Class and Description |
---|---|
class |
WheelEvent.WheelEventInit
Represents a dictionary that is having optional arguments for setting the details information about the event.
|
MouseEvent.MouseEventInit
UIEvent.EventModifierInit, UIEvent.UIEventInit
Event.EventInit
Modifier and Type | Field and Description |
---|---|
static long |
DOM_DELTA_LINE
The units of measurement for the delta MUST be individual lines of text.
|
static long |
DOM_DELTA_PAGE
The units of measurement for the delta MUST be pages, either defined as a single screen or as a demarcated page.
|
static long |
DOM_DELTA_PIXEL
The units of measurement for the delta MUST be pixels.
|
AT_TARGET_PHASE, BUBBLING_PHASE, CAPTURING_PHASE, NONE_PHASE
PropertyChanged
Constructor and Description |
---|
WheelEvent(String type)
Initializes a new instance of the
WheelEvent class. |
WheelEvent(String type,
WheelEvent.WheelEventInit eventInitDict)
Initializes a new instance of the
WheelEvent class. |
Modifier and Type | Method and Description |
---|---|
static Event |
createEvent(String type,
WheelEvent.WheelEventInit eventInit) |
static Event |
createWheelEvent(WheelEvent.WheelEventInit eventInit) |
long |
getDeltaMode()
The deltaMode attribute contains an indication of the units of measurement for the delta values.
|
double |
getDeltaX()
In user agents where the default action of the wheel event is to scroll, the value MUST be the measurement along the x-axis (in pixels, lines, or pages) to be scrolled in the case where the event is not cancelled.
|
double |
getDeltaY()
In user agents where the default action of the wheel event is to scroll, the value MUST be the measurement along the y-axis (in pixels, lines, or pages) to be scrolled in the case where the event is not cancelled.
|
double |
getDeltaZ()
In user agents where the default action of the wheel event is to scroll, the value MUST be the measurement along the z-axis (in pixels, lines, or pages) to be scrolled in the case where the event is not cancelled.
|
createClickEvent, createDblClickEvent, createEvent, createMouseDownEvent, createMouseEnterEvent, createMouseLeaveEvent, createMouseMoveEvent, createMouseOutEvent, createMouseOverEvent, createMouseUpEvent, getAltKey, getButton, getButtons, getClientX, getClientY, getCtrlKey, getMetaKey, getRelatedTarget, getScreenX, getScreenY, getShiftKey
createAbortEvent, createEvent, createLoadEvent, createSelectEvent, createUnLoadEvent, getDetail, getView
createDOMContentLoadedEvent, createError, createEvent, createEvent, createEventByType, dispatch, getBubbles, getCancelable, getCurrentTarget, getDefaultPrevented, getEventPhase, getTarget, getTimeStamp, getType, initEvent, isTrusted, preventDefault, setCurrentTarget, setEventPhase, setTarget, stopImmediatePropagation, stopPropagation
fireNotifyPropertyChanged, getCurrentValues, getRuntimesBinding, setCurrentValues, setField, setRuntimesBinding
public static final long DOM_DELTA_PIXEL
The units of measurement for the delta MUST be pixels. This is the most typical case in most operating system and implementation configurations.
public static final long DOM_DELTA_LINE
The units of measurement for the delta MUST be individual lines of text. This is the case for many form controls.
public static final long DOM_DELTA_PAGE
The units of measurement for the delta MUST be pages, either defined as a single screen or as a demarcated page.
public WheelEvent(String type)
Initializes a new instance of the WheelEvent
class.
type
- The event type.public WheelEvent(String type, WheelEvent.WheelEventInit eventInitDict)
Initializes a new instance of the WheelEvent
class.
type
- The event type.eventInitDict
- The event initialize dictionary.public static Event createWheelEvent(WheelEvent.WheelEventInit eventInit)
public static Event createEvent(String type, WheelEvent.WheelEventInit eventInit)
@DOMNameAttribute(name="deltaX") public double getDeltaX()
In user agents where the default action of the wheel event is to scroll, the value MUST be the measurement along the x-axis (in pixels, lines, or pages) to be scrolled in the case where the event is not cancelled. Otherwise, this is an implementation-specific measurement (in pixels, lines, or pages) of the movement of a wheel device around the x-axis.
Value: The deltaX attribute.@DOMNameAttribute(name="deltaY") public double getDeltaY()
In user agents where the default action of the wheel event is to scroll, the value MUST be the measurement along the y-axis (in pixels, lines, or pages) to be scrolled in the case where the event is not cancelled. Otherwise, this is an implementation-specific measurement (in pixels, lines, or pages) of the movement of a wheel device around the y-axis.
Value: The deltaY attribute.@DOMNameAttribute(name="deltaZ") public double getDeltaZ()
In user agents where the default action of the wheel event is to scroll, the value MUST be the measurement along the z-axis (in pixels, lines, or pages) to be scrolled in the case where the event is not cancelled. Otherwise, this is an implementation-specific measurement (in pixels, lines, or pages) of the movement of a wheel device around the z-axis.
Value: The deltaZ attribute.@DOMNameAttribute(name="deltaMode") public long getDeltaMode()
The deltaMode attribute contains an indication of the units of measurement for the delta values. The default value is DOM_DELTA_PIXEL (pixels).
Value: The delta mode.