@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.UIEventInit
Event.EventInit
AT_TARGET_PHASE, BUBBLING_PHASE, CAPTURING_PHASE, NONE_PHASE
PropertyChanged
Constructor and Description |
---|
InputEvent(String type)
Initializes a new instance of the
InputEvent class. |
InputEvent(String type,
InputEvent.InputEventInit eventInitDict)
Initializes a new instance of the
InputEvent class. |
Modifier and Type | Method and Description |
---|---|
static Event |
createEvent(String type,
InputEvent.InputEventInit eventInit) |
static Event |
createInputEvent(InputEvent.InputEventInit eventInit) |
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, getView
createDOMContentLoadedEvent, createError, createEvent, createEvent, createEventByType, dispatch, getBubbles, getCancelable, getCurrentTarget, getDefaultPrevented, getEventPhase, getTarget, getTimeStamp, getType, initEvent, isTrusted, preventDefault, setCurrentTarget, setEventPhase, setTarget, stopImmediatePropagation, stopPropagation
fireNotifyPropertyChanged, getCurrentValues, getRuntimesBinding, setCurrentValues, setField, setRuntimesBinding
public InputEvent(String type)
Initializes a new instance of the InputEvent
class.
type
- The event type.public InputEvent(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(String type, InputEvent.InputEventInit eventInit)
@DOMNameAttribute(name="data") public 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
.