@Generated(value="org.realityforge.webtack")
@JsType(isNative=true,
namespace="<global>",
name="Event")
public class Event
extends JsObject
| Modifier and Type | Field and Description |
|---|---|
static int |
AT_TARGET |
static int |
BUBBLING_PHASE |
boolean |
cancelBubble
The cancelBubble property of the Event interface is a historical alias to Event.stopPropagation().
|
static int |
CAPTURING_PHASE |
static int |
NONE |
boolean |
returnValue
The Event property returnValue indicates whether the default action for this event has been prevented or not.
|
| Constructor and Description |
|---|
Event(java.lang.String type)
The Event() constructor creates a new Event.
|
Event(java.lang.String type,
EventInit eventInitDict)
The Event() constructor creates a new Event.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
bubbles()
The bubbles read-only property of the Event interface indicates whether the event bubbles up through the DOM or not.
|
boolean |
cancelable()
The cancelable read-only property of the Event interface indicates whether the event can be canceled, and therefore prevented as if the event never happened.
|
boolean |
composed()
The read-only composed property of the Event interface returns a Boolean which indicates whether or not the event will propagate across the shadow DOM boundary into the standard DOM.
|
@JsNonNull JsArray<EventTarget> |
composedPath()
The composedPath() method of the Event interface returns the event’s path which is an array of the objects on which listeners will be invoked.
|
EventTarget |
currentTarget()
The currentTarget read-only property of the Event interface identifies the current target for the event, as the event traverses the DOM.
|
boolean |
defaultPrevented()
The defaultPrevented read-only property of the Event interface returns a Boolean indicating whether or not the call to Event.preventDefault() canceled the event.
|
int |
eventPhase()
The eventPhase read-only property of the Event interface indicates which phase of the event flow is currently being evaluated.
|
void |
initEvent(java.lang.String type)
The Event.initEvent() method is used to initialize the value of an event created using Document.createEvent().
|
void |
initEvent(java.lang.String type,
boolean bubbles)
The Event.initEvent() method is used to initialize the value of an event created using Document.createEvent().
|
void |
initEvent(java.lang.String type,
boolean bubbles,
boolean cancelable)
The Event.initEvent() method is used to initialize the value of an event created using Document.createEvent().
|
boolean |
isTrusted()
The isTrusted read-only property of the Event interface is a Boolean that is true when the event was generated by a user action, and false when the event was created or modified by a script or dispatched via EventTarget.dispatchEvent().
|
void |
preventDefault()
The Event interface's preventDefault() method tells the user agent that if the event does not get explicitly handled, its default action should not be taken as it normally would be.
|
EventTarget |
srcElement()
Initially implemented in Internet Explorer, Event.srcElement is a now-standard alias (defined in the DOM Standard but flagged as "historical") for the Event.target property.
|
void |
stopImmediatePropagation()
The stopImmediatePropagation() method of the Event interface prevents other listeners of the same event from being called.
|
void |
stopPropagation()
The stopPropagation() method of the Event interface prevents further propagation of the current event in the capturing and bubbling phases.
|
EventTarget |
target()
The target property of the Event interface is a reference to the object onto which the event was dispatched.
|
double |
timeStamp()
The timeStamp read-only property of the Event interface returns the time (in milliseconds) at which the event was created.
|
java.lang.String |
type()
The type read-only property of the Event interface returns a string containing the event's type.
|
assign, create, create, defineProperties, defineProperty, defineProperty, entries, freeze, fromEntries, getOwnPropertyDescriptor, getOwnPropertyDescriptor, getOwnPropertyDescriptors, getOwnPropertyNames, getOwnPropertySymbols, getPrototypeOf, hasOwnProperty, hasOwnProperty, is, isExtensible, isFrozen, isPrototypeOf, isSealed, keys, preventExtensions, propertyIsEnumerable, seal, setPrototypeOf, toString_, valueOf_, values@JsOverlay public static final int AT_TARGET
@JsOverlay public static final int BUBBLING_PHASE
@JsOverlay public static final int CAPTURING_PHASE
@JsOverlay public static final int NONE
public boolean cancelBubble
public boolean returnValue
public Event(@Nonnull
java.lang.String type,
@Nonnull
EventInit eventInitDict)
public Event(@Nonnull
java.lang.String type)
@JsProperty(name="bubbles") public boolean bubbles()
@JsProperty(name="cancelable") public boolean cancelable()
@JsProperty(name="composed") public boolean composed()
@JsProperty(name="currentTarget") @Nullable public EventTarget currentTarget()
@JsProperty(name="defaultPrevented") public boolean defaultPrevented()
@JsProperty(name="eventPhase") @EventPhase public int eventPhase()
@JsProperty(name="isTrusted") public boolean isTrusted()
@JsProperty(name="srcElement") @Nullable public EventTarget srcElement()
@JsProperty(name="target") @Nullable public EventTarget target()
@JsProperty(name="timeStamp") public double timeStamp()
@JsProperty(name="type") @Nonnull public java.lang.String type()
public @JsNonNull JsArray<EventTarget> composedPath()
public void initEvent(@Nonnull
java.lang.String type,
boolean bubbles,
boolean cancelable)
public void initEvent(@Nonnull
java.lang.String type,
boolean bubbles)
public void initEvent(@Nonnull
java.lang.String type)
public void preventDefault()
public void stopImmediatePropagation()
public void stopPropagation()