public class Event extends HtmlUnitScriptable
org.htmlunit.corejs.javascript.ScriptableObject.KeyComparator
Modifier and Type | Field and Description |
---|---|
static int |
ALT_MASK
Constant.
|
static int |
AT_TARGET
The second event phase: at the event target.
|
static int |
BUBBLING_PHASE
The third (and final) event phase: the bubbling phase.
|
static int |
CAPTURING_PHASE
The first event phase: the capturing phase.
|
static int |
CONTROL_MASK
Constant.
|
protected static String |
KEY_CURRENT_EVENT
Key to place the event's target in the Context's scope during event processing
to compute node coordinates compatible with those of the event.
|
static int |
META_MASK
Constant.
|
static int |
NONE
No event phase.
|
static int |
SHIFT_MASK
Constant.
|
static String |
TYPE_ABORT
The abort event type, triggered by
onabort event handlers. |
static String |
TYPE_AFTERPRINT
The afterprint event type, triggered by
afterprint event handlers. |
static String |
TYPE_AFTERSCRIPTEXECUTE
The afterscriptexecute event type, triggered by
afterscriptexecute event handlers. |
static String |
TYPE_ANIMATIONCANCEL
The animationcancel event type, triggered by
animationcancel event handlers. |
static String |
TYPE_ANIMATIONEND
The animationend event type, triggered by
animationend event handlers. |
static String |
TYPE_ANIMATIONITERATION
The animationiteration event type, triggered by
animationiteration event handlers. |
static String |
TYPE_ANIMATIONSTART
The animationstart event type, triggered by
animationstart event handlers. |
static String |
TYPE_AUXCLICK
The auxclick event type, triggered by
auxclick event handlers. |
static String |
TYPE_BEFORE_UNLOAD
The beforeunload event type, triggered by
onbeforeunload event handlers. |
static String |
TYPE_BEFORECOPY
The beforecopy event type, triggered by
beforecopy event handlers. |
static String |
TYPE_BEFORECUT
The beforecut event type, triggered by
beforecut event handlers. |
static String |
TYPE_BEFOREPASTE
The beforepaste event type, triggered by
beforepaste event handlers. |
static String |
TYPE_BEFOREPRINT
The beforeprint event type, triggered by
beforeprint event handlers. |
static String |
TYPE_BEFORESCRIPTEXECUTE
The beforescriptexecute event type, triggered by
beforescriptexecute event handlers. |
static String |
TYPE_BLUR
The blur event type, triggered by
onblur event handlers. |
static String |
TYPE_CANCEL
The cancel event type, triggered by
cancel event handlers. |
static String |
TYPE_CANPLAY
The canplay event type, triggered by
canplay event handlers. |
static String |
TYPE_CANPLAYTHROUGH
The canplaythrough event type, triggered by
canplaythrough event handlers. |
static String |
TYPE_CHANGE
The change event type, triggered by
onchange event handlers. |
static String |
TYPE_CLOSE
The close event type, triggered by
onclose event handlers. |
static String |
TYPE_COPY
The copy event type, triggered by
copy event handlers. |
static String |
TYPE_CUECHANGE
The cuechange event type, triggered by
cuechange event handlers. |
static String |
TYPE_CUT
The cut event type, triggered by
cut event handlers. |
static String |
TYPE_DEVICEMOTION
The devicemotion event type, triggered by
devicemotion event handlers. |
static String |
TYPE_DEVICEORIENTATION
The deviceorientation event type, triggered by
deviceorientation event handlers. |
static String |
TYPE_DEVICEORIENTATIONABSOLUTE
The deviceorientationabsolute event type, triggered by
deviceorientationabsolute event handlers. |
static String |
TYPE_DOM_DOCUMENT_LOADED
Triggered after the DOM has loaded but before images etc.
|
static String |
TYPE_DRAG
The drag event type, triggered by
drag event handlers. |
static String |
TYPE_DRAGEND
The dragend event type, triggered by
dragend event handlers. |
static String |
TYPE_DRAGENTER
The dragenter event type, triggered by
dragenter event handlers. |
static String |
TYPE_DRAGLEAVE
The dragleave event type, triggered by
dragleave event handlers. |
static String |
TYPE_DRAGOVER
The dragover event type, triggered by
dragover event handlers. |
static String |
TYPE_DRAGSTART
The dragstart event type, triggered by
dragstart event handlers. |
static String |
TYPE_DROP
The drop event type, triggered by
drop event handlers. |
static String |
TYPE_DURATIONCHANGE
The durationchange event type, triggered by
durationchange event handlers. |
static String |
TYPE_EMPTIED
The emptied event type, triggered by
emptied event handlers. |
static String |
TYPE_ENDED
The ended event type, triggered by
ended event handlers. |
static String |
TYPE_ERROR
The event type triggered by
onerror event handlers. |
static String |
TYPE_FOCUS
The focus event type, triggered by
onfocus event handlers. |
static String |
TYPE_FOCUS_IN
The focus in event type, triggered by
onfocusin event handlers. |
static String |
TYPE_FOCUS_OUT
The focus out event type, triggered by
onfocusout event handlers. |
static String |
TYPE_GAMEPAD_CONNECTED
The ongamepadconnected event type, triggered by
ongamepadconnected event handlers. |
static String |
TYPE_GAMEPAD_DISCONNECTED
The ongamepaddisconnected event type, triggered by
ongamepaddisconnected event handlers. |
static String |
TYPE_GOTPOINTERCAPTURE
The gotpointercapture event type, triggered by
gotpointercapture event handlers. |
static String |
TYPE_HASH_CHANGE
The event type triggered by
onhashchange event handlers. |
static String |
TYPE_INPUT
The input event type, triggered by
oninput event handlers. |
static String |
TYPE_INVALID
The invalid event type, triggered by
invalid event handlers. |
static String |
TYPE_KEY_DOWN
The key down event type, triggered by
onkeydown event handlers. |
static String |
TYPE_KEY_PRESS
The key down event type, triggered by
onkeypress event handlers. |
static String |
TYPE_KEY_UP
The key down event type, triggered by
onkeyup event handlers. |
static String |
TYPE_LANGUAGECHANGE
The languagechange event type, triggered by
languagechange event handlers. |
static String |
TYPE_LOAD
The load event type, triggered by
onload event handlers. |
static String |
TYPE_LOAD_END
The load end event type, triggered by
onloadend event handlers. |
static String |
TYPE_LOAD_START
The load start event type, triggered by
onloadstart event handlers. |
static String |
TYPE_LOADEDDATA
The loadeddata event type, triggered by
loadeddata event handlers. |
static String |
TYPE_LOADEDMETADATA
The loadedmetadata event type, triggered by
loadedmetadata event handlers. |
static String |
TYPE_LOSTPOINTERCAPTURE
The lostpointercapture event type, triggered by
lostpointercapture event handlers. |
static String |
TYPE_MESSAGE
The message event type, triggered by postMessage.
|
static String |
TYPE_MOUDEENTER
The mouseenter event type, triggered by
mouseenter event handlers. |
static String |
TYPE_MOUSELEAVE
The mouseleave event type, triggered by
mouseleave event handlers. |
static String |
TYPE_MOUSEWHEEL
The mousewheel event type, triggered by
mousewheel event handlers. |
static String |
TYPE_MOZFULLSCREENCHANGE
The mozfullscreenchange event type, triggered by
mozfullscreenchange event handlers. |
static String |
TYPE_MOZFULLSCREENERROR
The mozfullscreenerror event type, triggered by
mozfullscreenerror event handlers. |
static String |
TYPE_MSSITEMODEJUMPLISTITEMREMOVED
The mssitemodejumplistitemremoved event type, triggered
by
mssitemodejumplistitemremoved event handlers. |
static String |
TYPE_OFFLINE
The offline event type, triggered by
offline event handlers. |
static String |
TYPE_ONLINE
The online event type, triggered by
online event handlers. |
static String |
TYPE_ONMESSAGEERROR
The onmessageerror event type, triggered by
onmessageerror event handlers. |
static String |
TYPE_ONTRANSITIONCANCEL
The ontransitioncancel event type, triggered by
ontransitioncancel event handlers. |
static String |
TYPE_ONTRANSITIONEND
The ontransitionend event type, triggered by
ontransitionend event handlers. |
static String |
TYPE_ONTRANSITIONRUN
The ontransitionrun event type, triggered by
ontransitionrun event handlers. |
static String |
TYPE_ONTRANSITIONSTART
The ontransitionstart event type, triggered by
ontransitionstart event handlers. |
static String |
TYPE_OPEN
The open event type, triggered by
onopen event handlers. |
static String |
TYPE_PAGEHIDE
The pagehide event type, triggered by
pagehide event handlers. |
static String |
TYPE_PAGESHOW
The pageshow event type, triggered by
pageshow event handlers. |
static String |
TYPE_PASTE
The paste event type, triggered by
paste event handlers. |
static String |
TYPE_PAUSE
The pause event type, triggered by
pause event handlers. |
static String |
TYPE_PLAY
The play event type, triggered by
play event handlers. |
static String |
TYPE_PLAYING
The playing event type, triggered by
playing event handlers. |
static String |
TYPE_POINTERCANCEL
The pointercancel event type, triggered by
pointercancel event handlers. |
static String |
TYPE_POINTERDOWN
The pointerdown event type, triggered by
pointerdown event handlers. |
static String |
TYPE_POINTERENTER
The pointerenter event type, triggered by
pointerenter event handlers. |
static String |
TYPE_POINTERLEAVE
The pointerleave event type, triggered by
pointerleave event handlers. |
static String |
TYPE_POINTERLOCKCHANGE
The pointerlockchange event type, triggered by
pointerlockchange event handlers. |
static String |
TYPE_POINTERLOCKERROR
The pointerlockerror event type, triggered by
pointerlockerror event handlers. |
static String |
TYPE_POINTERMOVE
The pointermove event type, triggered by
pointermove event handlers. |
static String |
TYPE_POINTEROUT
The pointerout event type, triggered by
pointerout event handlers. |
static String |
TYPE_POINTEROVER
The pointerover event type, triggered by
pointerover event handlers. |
static String |
TYPE_POINTERUP
The pointerup event type, triggered by
pointerup event handlers. |
static String |
TYPE_POPSTATE
The popstate event type, triggered by
onpopstate event handlers. |
static String |
TYPE_PROGRESS
The progress event type, triggered by
onprogress event handlers. |
static String |
TYPE_PROPERTY_CHANGE
The event type triggered by
onpropertychange event handlers. |
static String |
TYPE_RATECHANGE
The ratechange event type, triggered by
ratechange event handlers. |
static String |
TYPE_READY_STATE_CHANGE
The event type triggered by
onreadystatechange event handlers. |
static String |
TYPE_REJECTIONHANDLED
The rejectionhandled event type, triggered by
rejectionhandled event handlers. |
static String |
TYPE_RESET
The submit event type, triggered by
onreset event handlers. |
static String |
TYPE_RESIZE
The resize event type, triggered by
resize event handlers. |
static String |
TYPE_SCROLL
The scroll event type, triggered by
onscroll event handlers. |
static String |
TYPE_SCROLLEND
The scroll event type, triggered by
onscrollend event handlers. |
static String |
TYPE_SEARCH
The search event type, triggered by
onsearch event handlers. |
static String |
TYPE_SEEKED
The seeked event type, triggered by
seeked event handlers. |
static String |
TYPE_SEEKING
The seeking event type, triggered by
seeking event handlers. |
static String |
TYPE_SELECT
The select event type, triggered by
select event handlers. |
static String |
TYPE_SELECTIONCHANGE
The selectionchange event type, triggered by
selectionchange event handlers. |
static String |
TYPE_SELECTSTART
The selectstart event type, triggered by
selectstart event handlers. |
static String |
TYPE_STALLED
The stalled event type, triggered by
stalled event handlers. |
static String |
TYPE_STORAGE
The storage event type, triggered by
storage event handlers. |
static String |
TYPE_SUBMIT
The submit event type, triggered by
onsubmit event handlers. |
static String |
TYPE_SUSPEND
The suspend event type, triggered by
suspend event handlers. |
static String |
TYPE_TIMEOUT
The timeout event type, triggered by
ontimeout event handlers. |
static String |
TYPE_TIMEUPDATE
The timeupdate event type, triggered by
timeupdate event handlers. |
static String |
TYPE_TOGGLE
The toggle event type, triggered by
toggle event handlers. |
static String |
TYPE_TRANSITIONEND
The transitionend event type, triggered by
transitionend event handlers. |
static String |
TYPE_UNHANDLEDREJECTION
The unhandledrejection event type, triggered by
unhandledrejection event handlers. |
static String |
TYPE_UNLOAD
The unload event type, triggered by
onunload event handlers. |
static String |
TYPE_VOLUMECHANGE
The volumechange event type, triggered by
volumechange event handlers. |
static String |
TYPE_WAITING
The waiting event type, triggered by
waiting event handlers. |
static String |
TYPE_WEBANIMATIONSTART
The webkitanimationstart event type, triggered by
webkitanimationstart event handlers. |
static String |
TYPE_WEBKITANIMATIONEND
The webkitanimationend event type, triggered by
webkitanimationend event handlers. |
static String |
TYPE_WEBKITANIMATIONITERATION
The webkitanimationiteration event type, triggered by
webkitanimationiteration event handlers. |
static String |
TYPE_WEBKITFULLSCREENCHANGE
The webkitfullscreenchange event type, triggered by
webkitfullscreenchange event handlers. |
static String |
TYPE_WEBKITFULLSCREENERROR
The webkitfullscreenerror event type, triggered by
webkitfullscreenerror event handlers. |
static String |
TYPE_WEBKITTRANSITIONEND
The webkittransitionend event type, triggered by
webkittransitionend event handlers. |
static String |
TYPE_WHEEL
The wheel event type, triggered by
wheel event handlers. |
CONST, DONTENUM, EMPTY, PERMANENT, READONLY, UNINITIALIZED_CONST
NOT_FOUND
Constructor and Description |
---|
Event()
Used to build the prototype.
|
Event(DomNode domNode,
String type)
Creates a new event instance.
|
Event(EventTarget target,
String type)
Creates a new event instance.
|
Modifier and Type | Method and Description |
---|---|
static Event |
createPropertyChangeEvent(DomNode domNode,
String propertyName)
Creates a new Event with
TYPE_PROPERTY_CHANGE type. |
void |
endFire()
Called when the event being fired ends.
|
void |
eventCreated()
Called whenever an event is created using
Document.createEvent(..) |
Object |
getComposed() |
org.htmlunit.corejs.javascript.Scriptable |
getCurrentTarget()
Returns the event target whose event listeners are currently being processed.
|
int |
getEventPhase()
Returns the current event phase for the event.
|
int |
getKeyCode()
Returns the key code associated with the event.
|
String |
getPropertyName()
Returns the property name associated with the event.
|
Object |
getReturnValue() |
Object |
getSrcElement()
Returns the object that fired the event.
|
Object |
getTarget()
Returns the event target to which the event was originally dispatched.
|
long |
getTimeStamp()
Returns the time at which this event was created.
|
String |
getType()
Returns the event type.
|
void |
initEvent(String type,
boolean bubbles,
boolean cancelable)
Initializes this event.
|
boolean |
isAborted(ScriptResult result)
Returns
true if this event has been aborted via preventDefault() in
standards-compliant browsers. |
boolean |
isAltKey()
Returns whether
ALT has been pressed during this event or not. |
boolean |
isBubbles() |
boolean |
isCancelable() |
boolean |
isCancelBubble() |
boolean |
isCtrlKey()
Returns whether
CTRL has been pressed during this event or not. |
boolean |
isDefaultPrevented()
Returns
true if both cancelable is true and preventDefault() has been
called for this event. |
boolean |
isImmediatePropagationStopped()
Indicates if event immediate propagation is stopped.
|
protected static boolean |
isMissingOrUndefined(Object value)
Returns whether the given value indicates a missing or undefined property.
|
boolean |
isPropagationStopped()
Indicates if event propagation is stopped.
|
boolean |
isShiftKey()
Returns whether
SHIFT has been pressed during this event or not. |
void |
jsConstructor(String type,
org.htmlunit.corejs.javascript.ScriptableObject details)
JavaScript constructor.
|
void |
preventDefault()
If, during any stage of event flow, this method is called the event is canceled.
|
boolean |
processLabelAfterBubbling()
INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.
|
protected void |
setAltKey(boolean altKey)
Sets whether
ALT key is pressed on not. |
protected void |
setBubbles(boolean bubbles) |
protected void |
setCancelable(boolean cancelable) |
void |
setCancelBubble(boolean newValue) |
protected void |
setCtrlKey(boolean ctrlKey)
Sets whether
CTRL key is pressed on not. |
void |
setCurrentTarget(org.htmlunit.corejs.javascript.Scriptable target)
Sets the current target.
|
void |
setEventPhase(int phase)
Sets the current event phase.
|
void |
setEventType(String eventType)
Sets the event type.
|
protected void |
setKeyCode(int keyCode)
Sets the key code.
|
void |
setReturnValue(Object newValue) |
protected void |
setShiftKey(boolean shiftKey)
Sets whether
SHIFT key is pressed on not. |
void |
setSrcElement(Object srcElement)
Sets the object that fired the event.
|
void |
setTarget(EventTarget target)
Sets the event target.
|
void |
setType(String type)
Sets the event type.
|
void |
startFire()
Called when the event starts being fired.
|
void |
stopImmediatePropagation()
Prevents other listeners of the same event from being called.
|
void |
stopPropagation()
Stops the event from propagating.
|
String |
toString() |
clone, equivalentValues, get, getBrowserVersion, getClassName, getDefaultValue, getDomNodeOrDie, getDomNodeOrNull, getPrototype, getScriptableFor, getWindow, getWindow, getWindowFromTopCallScope, getWithPreemption, has, hasInstance, initParentScope, makeScriptableFor, put, setClassName, setDomNode, setDomNode, setParentScope, setupPromise, setupRejectedPromise
applyDescriptorToAttributeBitset, associateValue, avoidObjectDetection, buildDataDescriptor, callMethod, callMethod, checkPropertyChange, checkPropertyDefinition, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineFunctionProperties, defineOwnProperties, defineOwnProperty, defineOwnProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, delete, delete, delete, deleteProperty, deleteProperty, deleteProperty, ensureScriptable, ensureScriptableObject, ensureSymbolScriptable, get, get, get, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getExternalArrayData, getExternalArrayLength, getFunctionPrototype, getGeneratorFunctionPrototype, getGetterOrSetter, getGetterOrSetter, getIds, getObjectPrototype, getOwnPropertyDescriptor, getParentScope, getProperty, getProperty, getProperty, getPropertyIds, getPrototype, getTopLevelScope, getTopScopeValue, getTypedProperty, getTypedProperty, getTypeOf, has, has, hasProperty, hasProperty, hasProperty, isAccessorDescriptor, isConst, isDataDescriptor, isEmpty, isExtensible, isFalse, isGenericDescriptor, isGetterOrSetter, isSealed, isTrue, preventExtensions, put, put, putConst, putConstProperty, putProperty, putProperty, putProperty, querySlot, redefineProperty, sameValue, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setAttributes, setCommonDescriptorProperties, setExternalArrayData, setGetterOrSetter, setPrototype, size
protected static final String KEY_CURRENT_EVENT
public static final String TYPE_SUBMIT
onsubmit
event handlers.public static final String TYPE_CHANGE
onchange
event handlers.public static final String TYPE_LOAD
onload
event handlers.public static final String TYPE_UNLOAD
onunload
event handlers.public static final String TYPE_POPSTATE
onpopstate
event handlers.public static final String TYPE_FOCUS
onfocus
event handlers.public static final String TYPE_FOCUS_IN
onfocusin
event handlers.public static final String TYPE_FOCUS_OUT
onfocusout
event handlers.public static final String TYPE_BLUR
onblur
event handlers.public static final String TYPE_KEY_DOWN
onkeydown
event handlers.public static final String TYPE_KEY_PRESS
onkeypress
event handlers.public static final String TYPE_INPUT
oninput
event handlers.public static final String TYPE_KEY_UP
onkeyup
event handlers.public static final String TYPE_RESET
onreset
event handlers.public static final String TYPE_BEFORE_UNLOAD
onbeforeunload
event handlers.public static final String TYPE_DOM_DOCUMENT_LOADED
public static final String TYPE_PROPERTY_CHANGE
onpropertychange
event handlers.public static final String TYPE_HASH_CHANGE
onhashchange
event handlers.public static final String TYPE_READY_STATE_CHANGE
onreadystatechange
event handlers.public static final String TYPE_ERROR
onerror
event handlers.public static final String TYPE_MESSAGE
public static final String TYPE_CLOSE
onclose
event handlers.public static final String TYPE_OPEN
onopen
event handlers.public static final String TYPE_LOAD_START
onloadstart
event handlers.public static final String TYPE_LOAD_END
onloadend
event handlers.public static final String TYPE_PROGRESS
onprogress
event handlers.public static final String TYPE_ABORT
onabort
event handlers.public static final String TYPE_TIMEOUT
ontimeout
event handlers.public static final String TYPE_SCROLL
onscroll
event handlers.public static final String TYPE_SCROLLEND
onscrollend
event handlers.public static final String TYPE_SEARCH
onsearch
event handlers.public static final String TYPE_DRAGEND
dragend
event handlers.public static final String TYPE_INVALID
invalid
event handlers.public static final String TYPE_POINTEROUT
pointerout
event handlers.public static final String TYPE_RATECHANGE
ratechange
event handlers.public static final String TYPE_ANIMATIONITERATION
animationiteration
event handlers.public static final String TYPE_CANPLAYTHROUGH
canplaythrough
event handlers.public static final String TYPE_CANCEL
cancel
event handlers.public static final String TYPE_POINTERENTER
pointerenter
event handlers.public static final String TYPE_SELECT
select
event handlers.public static final String TYPE_AUXCLICK
auxclick
event handlers.public static final String TYPE_WEBANIMATIONSTART
webkitanimationstart
event handlers.public static final String TYPE_DRAG
drag
event handlers.public static final String TYPE_SEEKED
seeked
event handlers.public static final String TYPE_OFFLINE
offline
event handlers.public static final String TYPE_DEVICEORIENTATION
deviceorientation
event handlers.public static final String TYPE_TOGGLE
toggle
event handlers.public static final String TYPE_PLAY
play
event handlers.public static final String TYPE_LOADEDMETADATA
loadedmetadata
event handlers.public static final String TYPE_POINTERMOVE
pointermove
event handlers.public static final String TYPE_LOSTPOINTERCAPTURE
lostpointercapture
event handlers.public static final String TYPE_POINTEROVER
pointerover
event handlers.public static final String TYPE_ANIMATIONCANCEL
animationcancel
event handlers.public static final String TYPE_ANIMATIONEND
animationend
event handlers.public static final String TYPE_DRAGENTER
dragenter
event handlers.public static final String TYPE_AFTERPRINT
afterprint
event handlers.public static final String TYPE_MOZFULLSCREENERROR
mozfullscreenerror
event handlers.public static final String TYPE_MOUSELEAVE
mouseleave
event handlers.public static final String TYPE_MOUSEWHEEL
mousewheel
event handlers.public static final String TYPE_SEEKING
seeking
event handlers.public static final String TYPE_CUECHANGE
cuechange
event handlers.public static final String TYPE_PAGESHOW
pageshow
event handlers.public static final String TYPE_MOZFULLSCREENCHANGE
mozfullscreenchange
event handlers.public static final String TYPE_DURATIONCHANGE
durationchange
event handlers.public static final String TYPE_PLAYING
playing
event handlers.public static final String TYPE_ENDED
ended
event handlers.public static final String TYPE_LOADEDDATA
loadeddata
event handlers.public static final String TYPE_UNHANDLEDREJECTION
unhandledrejection
event handlers.public static final String TYPE_SUSPEND
suspend
event handlers.public static final String TYPE_WAITING
waiting
event handlers.public static final String TYPE_CANPLAY
canplay
event handlers.public static final String TYPE_LANGUAGECHANGE
languagechange
event handlers.public static final String TYPE_EMPTIED
emptied
event handlers.public static final String TYPE_REJECTIONHANDLED
rejectionhandled
event handlers.public static final String TYPE_POINTERCANCEL
pointercancel
event handlers.public static final String TYPE_RESIZE
resize
event handlers.public static final String TYPE_PAUSE
pause
event handlers.public static final String TYPE_POINTERUP
pointerup
event handlers.public static final String TYPE_WHEEL
wheel
event handlers.public static final String TYPE_POINTERLEAVE
pointerleave
event handlers.public static final String TYPE_BEFOREPRINT
beforeprint
event handlers.public static final String TYPE_STORAGE
storage
event handlers.public static final String TYPE_ANIMATIONSTART
animationstart
event handlers.public static final String TYPE_TIMEUPDATE
timeupdate
event handlers.public static final String TYPE_PAGEHIDE
pagehide
event handlers.public static final String TYPE_WEBKITANIMATIONITERATION
webkitanimationiteration
event handlers.public static final String TYPE_DRAGOVER
dragover
event handlers.public static final String TYPE_ONLINE
online
event handlers.public static final String TYPE_VOLUMECHANGE
volumechange
event handlers.public static final String TYPE_GOTPOINTERCAPTURE
gotpointercapture
event handlers.public static final String TYPE_WEBKITTRANSITIONEND
webkittransitionend
event handlers.public static final String TYPE_WEBKITANIMATIONEND
webkitanimationend
event handlers.public static final String TYPE_DEVICEMOTION
devicemotion
event handlers.public static final String TYPE_STALLED
stalled
event handlers.public static final String TYPE_MOUDEENTER
mouseenter
event handlers.public static final String TYPE_DRAGLEAVE
dragleave
event handlers.public static final String TYPE_POINTERDOWN
pointerdown
event handlers.public static final String TYPE_DROP
drop
event handlers.public static final String TYPE_DRAGSTART
dragstart
event handlers.public static final String TYPE_TRANSITIONEND
transitionend
event handlers.public static final String TYPE_DEVICEORIENTATIONABSOLUTE
deviceorientationabsolute
event handlers.public static final String TYPE_BEFORECOPY
beforecopy
event handlers.public static final String TYPE_BEFORECUT
beforecut
event handlers.public static final String TYPE_BEFOREPASTE
beforepaste
event handlers.public static final String TYPE_SELECTSTART
selectstart
event handlers.public static final String TYPE_WEBKITFULLSCREENCHANGE
webkitfullscreenchange
event handlers.public static final String TYPE_WEBKITFULLSCREENERROR
webkitfullscreenerror
event handlers.public static final String TYPE_COPY
copy
event handlers.public static final String TYPE_CUT
cut
event handlers.public static final String TYPE_PASTE
paste
event handlers.public static final String TYPE_ONMESSAGEERROR
onmessageerror
event handlers.public static final String TYPE_POINTERLOCKCHANGE
pointerlockchange
event handlers.public static final String TYPE_POINTERLOCKERROR
pointerlockerror
event handlers.public static final String TYPE_SELECTIONCHANGE
selectionchange
event handlers.public static final String TYPE_AFTERSCRIPTEXECUTE
afterscriptexecute
event handlers.public static final String TYPE_BEFORESCRIPTEXECUTE
beforescriptexecute
event handlers.public static final String TYPE_ONTRANSITIONCANCEL
ontransitioncancel
event handlers.public static final String TYPE_ONTRANSITIONEND
ontransitionend
event handlers.public static final String TYPE_ONTRANSITIONRUN
ontransitionrun
event handlers.public static final String TYPE_ONTRANSITIONSTART
ontransitionstart
event handlers.public static final String TYPE_GAMEPAD_CONNECTED
ongamepadconnected
event handlers.public static final String TYPE_GAMEPAD_DISCONNECTED
ongamepaddisconnected
event handlers.public static final String TYPE_MSSITEMODEJUMPLISTITEMREMOVED
mssitemodejumplistitemremoved
event handlers.public static final int NONE
public static final int CAPTURING_PHASE
public static final int AT_TARGET
public static final int BUBBLING_PHASE
public static final int ALT_MASK
public static final int CONTROL_MASK
public static final int SHIFT_MASK
public static final int META_MASK
public Event(DomNode domNode, String type)
domNode
- the DOM node that triggered the eventtype
- the event typepublic Event(EventTarget target, String type)
target
- the targettype
- the event typepublic Event()
public static Event createPropertyChangeEvent(DomNode domNode, String propertyName)
TYPE_PROPERTY_CHANGE
type.domNode
- the DOM node that triggered the eventpropertyName
- the property name that was changedpublic void eventCreated()
Document.createEvent(..)
.
This method is called after the parent scope was set so you are able to access the browser version.public void jsConstructor(String type, org.htmlunit.corejs.javascript.ScriptableObject details)
type
- the event typedetails
- the event details (optional)public void startFire()
public void endFire()
public Object getSrcElement()
public void setSrcElement(Object srcElement)
srcElement
- the object that fired the eventpublic Object getTarget()
public void setTarget(EventTarget target)
target
- the event targetpublic org.htmlunit.corejs.javascript.Scriptable getCurrentTarget()
public void setCurrentTarget(org.htmlunit.corejs.javascript.Scriptable target)
target
- the new valuepublic String getType()
public void setType(String type)
type
- the event typepublic void setEventType(String eventType)
eventType
- the event typepublic long getTimeStamp()
protected void setKeyCode(int keyCode)
keyCode
- the virtual key code value of the key which was depressed, otherwise zeropublic int getKeyCode()
public boolean isShiftKey()
SHIFT
has been pressed during this event or not.SHIFT
has been pressed during this event or notprotected void setShiftKey(boolean shiftKey)
SHIFT
key is pressed on not.shiftKey
- whether SHIFT
has been pressed during this event or notpublic boolean isCtrlKey()
CTRL
has been pressed during this event or not.CTRL
has been pressed during this event or notprotected void setCtrlKey(boolean ctrlKey)
CTRL
key is pressed on not.ctrlKey
- whether CTRL
has been pressed during this event or notpublic boolean isAltKey()
ALT
has been pressed during this event or not.ALT
has been pressed during this event or notprotected void setAltKey(boolean altKey)
ALT
key is pressed on not.altKey
- whether ALT
has been pressed during this event or notpublic int getEventPhase()
public void setEventPhase(int phase)
phase
- the phase the event is inpublic boolean isBubbles()
protected void setBubbles(boolean bubbles)
bubbles
- the bubbles to setpublic boolean isCancelable()
protected void setCancelable(boolean cancelable)
cancelable
- the cancelable to setpublic boolean isDefaultPrevented()
true
if both cancelable
is true
and preventDefault()
has been
called for this event. Otherwise this attribute must return false
.true
if this event has been cancelled or notpublic boolean isCancelBubble()
public void setCancelBubble(boolean newValue)
newValue
- indicates if event propagation is stoppedpublic void stopPropagation()
public boolean isPropagationStopped()
public void stopImmediatePropagation()
public boolean isImmediatePropagationStopped()
public String getPropertyName()
public void initEvent(String type, boolean bubbles, boolean cancelable)
type
- the event typebubbles
- whether or not the event should bubblecancelable
- whether or not the event the event should be cancelablepublic void preventDefault()
public boolean isAborted(ScriptResult result)
true
if this event has been aborted via preventDefault()
in
standards-compliant browsers.result
- the event handler result (if false
, the event is considered aborted)true
if this event has been abortedpublic boolean processLabelAfterBubbling()
public Object getReturnValue()
public void setReturnValue(Object newValue)
newValue
- the new return valuepublic Object getComposed()
protected static boolean isMissingOrUndefined(Object value)
value
- the new valueCopyright © 2002–2024 Gargoyle Software Inc.. All rights reserved.