
public class JsTouchEvent extends JsUIEvent implements TouchEvent
AT_TARGET, BEFORECOPY, BEFORECUT, BEFOREPASTE, BLUR, BUBBLING_PHASE, CAPTURING_PHASE, CHANGE, CLICK, CONTEXTMENU, COPY, CUT, DBLCLICK, DRAG, DRAGEND, DRAGENTER, DRAGLEAVE, DRAGOVER, DRAGSTART, DROP, ERROR, FOCUS, FOCUSIN, FOCUSOUT, INPUT, INVALID, KEYDOWN, KEYPRESS, KEYUP, MOUSEDOWN, MOUSEMOVE, MOUSEOUT, MOUSEOVER, MOUSEUP, MOUSEWHEEL, NONE, PASTE, RESIZE, SCROLL, SELECTSTART, SUBMIT, TOUCHCANCEL, TOUCHEND, TOUCHMOVE, TOUCHSTART, WEBKITANIMATIONEND, WEBKITANIMATIONITERATION, WEBKITANIMATIONSTART, WEBKITTRANSITIONENDSVG_ZOOMANDPAN_DISABLE, SVG_ZOOMANDPAN_MAGNIFY, SVG_ZOOMANDPAN_UNKNOWN| Modifier | Constructor and Description |
|---|---|
protected |
JsTouchEvent() |
| Modifier and Type | Method and Description |
|---|---|
JsTouchList |
getChangedTouches()
|
JsTouchList |
getTargetTouches()
|
JsTouchList |
getTouches()
|
void |
initTouchEvent(TouchList touches,
TouchList targetTouches,
TouchList changedTouches,
String type,
Window view,
int screenX,
int screenY,
int clientX,
int clientY,
boolean ctrlKey,
boolean altKey,
boolean shiftKey,
boolean metaKey) |
boolean |
isAltKey()
A Boolean value indicating whether or not the alt key was down when the touch event was fired.
|
boolean |
isCtrlKey()
A Boolean value indicating whether or not the control key was down when the touch event was fired.
|
boolean |
isMetaKey()
A Boolean value indicating whether or not the meta key was down when the touch event was fired.
|
boolean |
isShiftKey()
A Boolean value indicating whether or not the shift key was down when the touch event was fired.
|
getCharCode, getDetail, getKeyCode, getLayerX, getLayerY, getPageX, getPageY, getView, getWhich, initUIEventgetClipboardData, getCurrentTarget, getEventPhase, getSrcElement, getTarget, getTimeStamp, getType, initEvent, isBubbles, isCancelable, isCancelBubble, isDefaultPrevented, isReturnValue, preventDefault, setCancelBubble, setReturnValue, stopImmediatePropagation, stopPropagationaddEventListener, addEventListener, beginElement, beginElementAt, dispatchEvent, endElement, endElementAt, getAnimatedClassName, getAnimatedHeight, getAnimatedHref, getAnimatedResult, getAnimatedTransform, getAnimatedWidth, getAnimatedX, getAnimatedY, getBBox, getChildElementCount, getCTM, getExternalResourcesRequired, getFarthestViewportElement, getFirstElementChild, getLastElementChild, getNearestViewportElement, getNextElementSibling, getPresentationAttribute, getPreserveAspectRatio, getPreviousElementSibling, getRequiredExtensions, getRequiredFeatures, getScreenCTM, getSvgStyle, getSystemLanguage, getTransformToElement, getViewBox, getXmllang, getXmlspace, getZoomAndPan, hasExtension, querySelector, querySelectorAll, removeEventListener, removeEventListener, setXmllang, setXmlspace, setZoomAndPanat, at, intAt, intAt, length, numberAt, numberAt, setAt, setAt, setAt, setAt, setAt, setAtcast, createArray, createArray, createFunction, createObject, equals, hashCode, toSource, toStringgetCharCode, getDetail, getKeyCode, getLayerX, getLayerY, getPageX, getPageY, getView, getWhich, initUIEventgetClipboardData, getCurrentTarget, getEventPhase, getSrcElement, getTarget, getTimeStamp, getType, initEvent, isBubbles, isCancelable, isCancelBubble, isDefaultPrevented, isReturnValue, preventDefault, setCancelBubble, setReturnValue, stopImmediatePropagation, stopPropagationintAt, lengthnumberAtpublic final boolean isAltKey()
TouchEventisAltKey in interface TouchEventpublic final JsTouchList getChangedTouches()
TouchEventTouchList
of all the Touch
objects representing individual points of contact whose states changed between the previous touch event and this one. Read only.getChangedTouches in interface TouchEventpublic final boolean isCtrlKey()
TouchEventisCtrlKey in interface TouchEventpublic final boolean isMetaKey()
TouchEventisMetaKey in interface TouchEventpublic final boolean isShiftKey()
TouchEventisShiftKey in interface TouchEventpublic final JsTouchList getTargetTouches()
TouchEventTouchList
of all the Touch
objects that are both currently in contact with the touch surface and were also started on the same element that is the target of the event. Read only.getTargetTouches in interface TouchEventpublic final JsTouchList getTouches()
TouchEventTouchList
of all the Touch
objects representing all current points of contact with the surface, regardless of target or changed status. Read only.getTouches in interface TouchEventpublic final void initTouchEvent(TouchList touches, TouchList targetTouches, TouchList changedTouches, String type, Window view, int screenX, int screenY, int clientX, int clientY, boolean ctrlKey, boolean altKey, boolean shiftKey, boolean metaKey)
initTouchEvent in interface TouchEventCopyright © 2016. All rights reserved.