public class JsEvent extends JsElementalMixinBase implements Event
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, WEBKITTRANSITIONEND
SVG_ZOOMANDPAN_DISABLE, SVG_ZOOMANDPAN_MAGNIFY, SVG_ZOOMANDPAN_UNKNOWN
Modifier | Constructor and Description |
---|---|
protected |
JsEvent() |
Modifier and Type | Method and Description |
---|---|
JsClipboard |
getClipboardData() |
EventTarget |
getCurrentTarget()
A reference to the currently registered target for the event.
|
int |
getEventPhase()
Indicates which phase of the event flow is being processed.
|
EventTarget |
getSrcElement() |
EventTarget |
getTarget()
A reference to the target to which the event was originally dispatched.
|
double |
getTimeStamp()
The time that the event was created.
|
String |
getType()
The name of the event (case-insensitive).
|
void |
initEvent(String eventTypeArg,
boolean canBubbleArg,
boolean cancelableArg)
Initializes the value of an Event created through the
DocumentEvent interface. |
boolean |
isBubbles()
A boolean indicating whether the event bubbles up through the DOM or not.
|
boolean |
isCancelable()
A boolean indicating whether the event is cancelable.
|
boolean |
isCancelBubble()
A boolean indicating whether the bubbling of the event has been canceled or not.
|
boolean |
isDefaultPrevented()
Indicates whether or not
event.preventDefault()
has been called on the event. |
boolean |
isReturnValue() |
void |
preventDefault()
Cancels the event (if it is cancelable).
|
void |
setCancelBubble(boolean param_cancelBubble) |
void |
setReturnValue(boolean param_returnValue) |
void |
stopImmediatePropagation()
For this particular event, no other listener will be called.
|
void |
stopPropagation()
Stops the propagation of events further along in the DOM.
|
addEventListener, 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, setZoomAndPan
at, at, intAt, intAt, length, numberAt, numberAt, setAt, setAt, setAt, setAt, setAt, setAt
cast, createArray, createArray, createFunction, createObject, equals, hashCode, toSource, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
intAt, length
numberAt
public final boolean isBubbles()
Event
public final boolean isCancelBubble()
Event
isCancelBubble
in interface Event
public final void setCancelBubble(boolean param_cancelBubble)
setCancelBubble
in interface Event
public final boolean isCancelable()
Event
isCancelable
in interface Event
public final JsClipboard getClipboardData()
getClipboardData
in interface Event
public final EventTarget getCurrentTarget()
Event
getCurrentTarget
in interface Event
public final boolean isDefaultPrevented()
Event
event.preventDefault()
has been called on the event.isDefaultPrevented
in interface Event
public final int getEventPhase()
Event
getEventPhase
in interface Event
public final boolean isReturnValue()
isReturnValue
in interface Event
public final void setReturnValue(boolean param_returnValue)
setReturnValue
in interface Event
public final EventTarget getSrcElement()
getSrcElement
in interface Event
public final EventTarget getTarget()
Event
public final double getTimeStamp()
Event
getTimeStamp
in interface Event
public final String getType()
Event
public final void initEvent(String eventTypeArg, boolean canBubbleArg, boolean cancelableArg)
Event
DocumentEvent
interface.public final void preventDefault()
Event
preventDefault
in interface Event
public final void stopImmediatePropagation()
Event
stopImmediatePropagation
in interface Event
public final void stopPropagation()
Event
stopPropagation
in interface Event
Copyright © 2018. All rights reserved.