public interface CustomEvent extends Event
Event
interface, it allows applications to provide contextual information about
the event type. Application-specific event types should have an
associated namespace to avoid clashes with future general-purpose event
types.
To create an instance of the CustomEvent
interface, use
the DocumentEvent.createEvent("CustomEvent")
method call.
See also the Document Object Model (DOM) Level 3 Events Specification.
AT_TARGET, BUBBLING_PHASE, CAPTURING_PHASE
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getDetail()
Specifies some detail information about the
Event . |
void |
initCustomEventNS(java.lang.String namespaceURIArg,
java.lang.String typeArg,
boolean canBubbleArg,
boolean cancelableArg,
java.lang.Object detailArg)
The
initCustomEventNS method is used to initialize the
value of a CustomEvent object and has the same behavior
as Event.initEventNS() . |
getBubbles, getCancelable, getCurrentTarget, getDefaultPrevented, getEventPhase, getNamespaceURI, getTarget, getTimeStamp, getType, initEvent, initEventNS, preventDefault, stopPropagation
java.lang.Object getDetail()
Event
.void initCustomEventNS(java.lang.String namespaceURIArg, java.lang.String typeArg, boolean canBubbleArg, boolean cancelableArg, java.lang.Object detailArg)
initCustomEventNS
method is used to initialize the
value of a CustomEvent
object and has the same behavior
as Event.initEventNS()
.namespaceURIArg
- Refer to the Event.initEventNS()
method for a description of this parameter.typeArg
- Refer to the Event.initEventNS()
method
for a description of this parameter.canBubbleArg
- Refer to the Event.initEventNS()
method for a description of this parameter.cancelableArg
- Refer to the Event.initEventNS()
method for a description of this parameter.detailArg
- Specifies CustomEvent.detail
. This
value may be null
.Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
Use is subject to License Terms. Your use of this web site or any of its contents or software indicates your agreement to be bound by these License Terms.