Interface TextEvent
- All Known Implementing Classes:
DOMTextEvent
The
TextEvent interface provides specific contextual
information associated with Text Events.
To create an instance of the TextEvent interface, use the
DocumentEvent.createEvent("TextEvent") method call.
See also the Document Object Model (DOM) Level 3 Events Specification .
- Since:
- DOM Level 3
-
Field Summary
Fields inherited from interface Event
AT_TARGET, BUBBLING_PHASE, CAPTURING_PHASE -
Method Summary
Modifier and TypeMethodDescriptiongetData()dataholds the value of the characters generated by the character device.voidinitTextEvent(String typeArg, boolean canBubbleArg, boolean cancelableArg, AbstractView viewArg, String dataArg) TheinitTextEventmethod is used to initialize the value of aTextEventobject and has the same behavior asUIEvent.initUIEvent().voidinitTextEventNS(String namespaceURI, String type, boolean canBubbleArg, boolean cancelableArg, AbstractView viewArg, String dataArg) TheinitTextEventNSmethod is used to initialize the value of aTextEventobject and has the same behavior asUIEvent.initUIEventNS().Methods inherited from interface Event
getBubbles, getCancelable, getCurrentTarget, getEventPhase, getTarget, getTimeStamp, getType, initEvent, preventDefault, stopPropagationMethods inherited from interface UIEvent
getDetail, getView, initUIEvent
-
Method Details
-
getData
String getData()dataholds the value of the characters generated by the character device. This may be a single Unicode character or a non-empty sequence of Unicode characters [Unicode]. Characters should be normalized as defined by the Unicode normalization form NFC, defined in [UAX #15]. This attribute cannot be null or contain the empty string. -
initTextEvent
void initTextEvent(String typeArg, boolean canBubbleArg, boolean cancelableArg, AbstractView viewArg, String dataArg) TheinitTextEventmethod is used to initialize the value of aTextEventobject and has the same behavior asUIEvent.initUIEvent(). The value ofUIEvent.detailremains undefined.- Parameters:
typeArg- Refer to theUIEvent.initUIEvent()method for a description of this parameter.canBubbleArg- Refer to theUIEvent.initUIEvent()method for a description of this parameter.cancelableArg- Refer to theUIEvent.initUIEvent()method for a description of this parameter.viewArg- Refer to theUIEvent.initUIEvent()method for a description of this parameter.dataArg- SpecifiesTextEvent.data.
-
initTextEventNS
void initTextEventNS(String namespaceURI, String type, boolean canBubbleArg, boolean cancelableArg, AbstractView viewArg, String dataArg) TheinitTextEventNSmethod is used to initialize the value of aTextEventobject and has the same behavior asUIEvent.initUIEventNS(). The value ofUIEvent.detailremains undefined.- Parameters:
namespaceURI- Refer to theUIEvent.initUIEventNS()method for a description of this parameter.type- Refer to theUIEvent.initUIEventNS()method for a description of this parameter.canBubbleArg- Refer to theUIEvent.initUIEventNS()method for a description of this parameter.cancelableArg- Refer to theUIEvent.initUIEventNS()method for a description of this parameter.viewArg- Refer to theUIEvent.initUIEventNS()method for a description of this parameter.dataArg- Refer to theTextEvent.initTextEvent()method for a description of this parameter.
-