@DOMObjectAttribute @DOMNameAttribute(name="InputEvent") public class InputEvent extends UIEvent
Input events are sent as notifications whenever the DOM is being updated.
| Modifier and Type | Class and Description |
|---|---|
class |
InputEvent.InputEventInit
Represents a dictionary that is having optional arguments for setting the details information about the event.
|
UIEvent.EventModifierInit, UIEvent.UIEventInitEvent.EventInitAT_TARGET_PHASE, BUBBLING_PHASE, CAPTURING_PHASE, NONE_PHASEPropertyChanged, PropertyChangedDelegate| Constructor and Description |
|---|
InputEvent(java.lang.String type)
Initializes a new instance of the
InputEvent class. |
InputEvent(java.lang.String type,
InputEvent.InputEventInit eventInitDict)
Initializes a new instance of the
InputEvent class. |
| Modifier and Type | Method and Description |
|---|---|
static Event |
createEvent(java.lang.String type,
InputEvent.InputEventInit eventInit) |
static Event |
createInputEvent(InputEvent.InputEventInit eventInit) |
java.lang.String |
getData()
The data holds the value of the characters generated by an input method.
|
boolean |
isComposing()
true if the input event occurs as part of a composition session, i.e., after a compositionstart event and before the corresponding compositionend event.
|
createAbortEvent, createEvent, createLoadEvent, createSelectEvent, createUnLoadEvent, getDetail, getViewcreateDOMContentLoadedEvent, createError, createEvent, createEvent, createEventByType, dispatch, getBubbles, getCancelable, getCurrentTarget, getDefaultPrevented, getEventPhase, getTarget, getTimeStamp, getType, initEvent, isTrusted, preventDefault, setCurrentTarget, setEventPhase, setTarget, stopImmediatePropagation, stopPropagationfireNotifyPropertyChanged, getCurrentValues, getRuntimesBinding, setCurrentValues, setField, setRuntimesBindingpublic InputEvent(java.lang.String type)
Initializes a new instance of the InputEvent class.
type - The event type.public InputEvent(java.lang.String type,
InputEvent.InputEventInit eventInitDict)
Initializes a new instance of the InputEvent class.
type - The event type.eventInitDict - The event initialize dictionary.public static Event createInputEvent(InputEvent.InputEventInit eventInit)
public static Event createEvent(java.lang.String type, InputEvent.InputEventInit eventInit)
@DOMNameAttribute(name="data") public java.lang.String getData()
The data holds the value of the characters generated by an input method. 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 [UAX15]. This attribute MAY contain the empty string.
Value: The event data.@DOMNameAttribute(name="isComposing") public boolean isComposing()
true if the input event occurs as part of a composition session, i.e., after a compositionstart event and before the corresponding compositionend event. The un-initialized value of this attribute MUST be false.
Value:true if this instance is composing; otherwise, false.