Package org.apache.batik.w3c.dom.events
Interface CustomEvent
- All Superinterfaces:
Event
- All Known Implementing Classes:
DOMCustomEvent
The CustomEvent interface is the recommended interface for
application-specific event types. Unlike the
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 .
- Since:
- DOM Level 3
-
Field Summary
Fields inherited from interface org.w3c.dom.events.Event
AT_TARGET, BUBBLING_PHASE, CAPTURING_PHASE
-
Method Summary
Modifier and TypeMethodDescriptionSpecifies some detail information about theEvent
.void
initCustomEventNS
(String namespaceURI, String typeArg, boolean canBubbleArg, boolean cancelableArg, Object detailArg) TheinitCustomEventNS
method is used to initialize the value of aCustomEvent
object and has the same behavior asEvent.initEventNS()
.Methods inherited from interface org.w3c.dom.events.Event
getBubbles, getCancelable, getCurrentTarget, getEventPhase, getTarget, getTimeStamp, getType, initEvent, preventDefault, stopPropagation
-
Method Details
-
getDetail
Object getDetail()Specifies some detail information about theEvent
. -
initCustomEventNS
void initCustomEventNS(String namespaceURI, String typeArg, boolean canBubbleArg, boolean cancelableArg, Object detailArg) TheinitCustomEventNS
method is used to initialize the value of aCustomEvent
object and has the same behavior asEvent.initEventNS()
.- Parameters:
namespaceURI
- Refer to theEvent.initEventNS()
method for a description of this parameter.typeArg
- Refer to theEvent.initEventNS()
method for a description of this parameter.canBubbleArg
- Refer to theEvent.initEventNS()
method for a description of this parameter.cancelableArg
- Refer to theEvent.initEventNS()
method for a description of this parameter.detailArg
- SpecifiesCustomEvent.detail
. This value may benull
.
-