Nokia Maps API Reference

Contents

Interface nokia.maps.dom.TextEvent

Interface Summary

This event is fired if some text is entered from the keyboard, clipboard or from some other source.

Note that this class represents an unimplemented interface. It is included here to document its properties. The class is derived from nokia.maps.dom.Event, but, in addition to the properties of the parent class, it has the properties described here.

Method Summary
cancel () : nokia.maps.dom.Event This method cancels the given event.
clone () : nokia.maps.dom.Event This method clones the given event without cloning the properties (non-recursive cloning only).
preventDefault () : nokia.maps.dom.Event This method cancels the default action for the given event.
preventUnload (msg) : nokia.maps.dom.Event This method can be used only when the given event is of the type "beforeunload" to ask the user to confirm whether he wants to leave the page.
stopImmediatePropagation () : nokia.maps.dom.Event This method prevents other event listeners from being triggered and, in contrast to Event.stopPropagation(), its effect is immediate.
stopPropagation () : nokia.maps.dom.Event This method prevents other event listeners from being triggered, but its effect is deferred until all event listeners attached on the Event.currentTarget have been triggered.
Field Summary
Number AT_TARGET This field is an event phase identifier, indicating the target phase, which means it is being evaluated at the event target.
Number BUBBLING_PHASE This field is an event phase identifier, indicating the bubbling phase.
Number CAPTURING_PHASE This field is an event phase identifier, indicating the capture phase.
Number DOM_INPUT_METHOD_DROP This field is an identifier indicating that text was inserted as part of a drag-and-drop operation.
Number DOM_INPUT_METHOD_HANDWRITING This field is an identifier indicating that text was entered through a pen/tablet device and processed by handwriting recognition software.
Number DOM_INPUT_METHOD_IME This field is an identifier indicating that text was entered through an Input Method Editor.
Number DOM_INPUT_METHOD_KEYBOARD This field is an identifier indicating that text was entered, using through the keyboard.
Number DOM_INPUT_METHOD_MULTIMODAL This field is an identifier indicating that text was inserted as part of an operation involving multiple input modalities in combination, such as pointer-enhanced speech.
Number DOM_INPUT_METHOD_OPTION This field is an identifier indicating that text was selected from a set of options presented to the user, such as from a form.
Number DOM_INPUT_METHOD_PASTE This field is an identifier indicating that text was pasted in from a clipboard.
Number DOM_INPUT_METHOD_SCRIPT This field is an identifier indicating that text was inserted via a script operation on the DOM.
Number DOM_INPUT_METHOD_UNKNOWN This field is an identifier indicating that text was entered by an unknown method.
Number DOM_INPUT_METHOD_VOICE This field is an identifier indicating that text was input by a voice device and interpreted by speech recognition software.
Number PROPAGATION_OK This field is an identifier, indicating that the propagation of the event has not been stopped.
Number PROPAGATION_STOP This field is an identifier, indicating that the propagation of the event has been stopped.
Number PROPAGATION_STOP_IMMEDIATE This field is an identifier, indicating that the propagation of the event has been stopped with immediate effect.
Boolean bubbles This property indicates whether the event is a bubbling event (true) or not (false).
Boolean canBubble This property indicates whether the event can bubble (true) or not (false).
Boolean canSicker This property indicates whether the event can sicker (whether in the capture phase, listeners can be iterated from the top down) or not.
Boolean cancelable This property indicates whether or not an event can have its default action canceled (prevented).
nokia.maps.dom.EventTarget currentTarget This property indicates the object whose eventListeners are currently being processed.
String data This property holds the data associated with the text event.
Boolean defaultPrevented This property indicates whether preventDefault() has been called for this event.
Number eventPhase This property indicates the phase in the event flow the given event has reached.
Number inputMode This property indicates the origin of the text input.
String namespaceURI This property holds the namespace URI associated with the event or null if it is unspecified.
Event nativeEvent This property holds a reference to the native DOM event on which the given normalized event object is based.
nokia.maps.dom.Page page This property holds a reference to the page to which the given event relates.
Number propagation This property indicates the status of event propagation.
nokia.maps.dom.EventTarget target This property holds the target object of the event.
Number timeStamp This property specifies the time at which the event was created in milliseconds relative to 1970-01-01T00:00:00Z.
String type This property holds the local name of the event type.
Field Detail
readonly Number DOM_INPUT_METHOD_DROP
This field is an identifier indicating that text was inserted as part of a drag-and-drop operation. This may be associated with a drop event (described elsewhere).
readonly Number DOM_INPUT_METHOD_HANDWRITING
This field is an identifier indicating that text was entered through a pen/tablet device and processed by handwriting recognition software. This may be associated with a specific event defined elsewhere.
readonly Number DOM_INPUT_METHOD_IME
This field is an identifier indicating that text was entered through an Input Method Editor. This may be associated with a composition end event.
readonly Number DOM_INPUT_METHOD_KEYBOARD
This field is an identifier indicating that text was entered, using through the keyboard. This may be associated with one or more of keypress, keydown, or keyup events.
readonly Number DOM_INPUT_METHOD_MULTIMODAL
This field is an identifier indicating that text was inserted as part of an operation involving multiple input modalities in combination, such as pointer-enhanced speech. This may be associated with various other events (described elsewhere).
readonly Number DOM_INPUT_METHOD_OPTION
This field is an identifier indicating that text was selected from a set of options presented to the user, such as from a form. This may be associated with various other events (described elsewhere).
readonly Number DOM_INPUT_METHOD_PASTE
This field is an identifier indicating that text was pasted in from a clipboard. This may be associated with a paste event (described elsewhere).
readonly Number DOM_INPUT_METHOD_SCRIPT
This field is an identifier indicating that text was inserted via a script operation on the DOM. This may be associated with one or more mutation events.
readonly Number DOM_INPUT_METHOD_UNKNOWN
This field is an identifier indicating that text was entered by an unknown method.
readonly Number DOM_INPUT_METHOD_VOICE
This field is an identifier indicating that text was input by a voice device and interpreted by speech recognition software. This may be associated with a specific event defined elsewhere.
String data
This property holds the data associated with the text event. Its value are 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. The property cannot be null or contain an empty string.
Number inputMode
This property indicates the origin of the text input. Its value is one of the input method identfiers defined on this class, for exmaple, DOM_INPUT_METHOD_UNKNOWN, DOM_INPUT_METHOD_KEYBOARD, DOM_INPUT_METHOD_PASTE, etc.
Documentation generated on Tue May 08 2012 10:23:34 GMT+0200 (CEST).