Module org.htmlunit

Class InputEvent

java.lang.Object
org.htmlunit.corejs.javascript.SlotMapOwner<org.htmlunit.corejs.javascript.Scriptable>
org.htmlunit.corejs.javascript.ScriptableObject
All Implemented Interfaces:
Serializable, Cloneable, org.htmlunit.corejs.javascript.ConstProperties<org.htmlunit.corejs.javascript.Scriptable>, org.htmlunit.corejs.javascript.debug.DebuggableObject, org.htmlunit.corejs.javascript.PropHolder<org.htmlunit.corejs.javascript.Scriptable>, org.htmlunit.corejs.javascript.Scriptable, org.htmlunit.corejs.javascript.SymbolScriptable

public class InputEvent extends UIEvent
JavaScript host object for InputEvent.
Author:
Ahmed Ashour, Ronald Brill
See Also:
  • Constructor Details

    • InputEvent

      public InputEvent()
      Creates a new event instance.
  • Method Details

    • jsConstructor

      public void jsConstructor(String type, org.htmlunit.corejs.javascript.ScriptableObject details)
      Creates an instance of this event.
      Overrides:
      jsConstructor in class UIEvent
      Parameters:
      type - the event type
      details - the event details (optional)
    • isIsComposing

      public boolean isIsComposing()
      Returns whether this event is fired after the compositionstart and before the compositionend events.
      Returns:
      true if the event is fired while composing
    • setIsComposing

      protected void setIsComposing(boolean isComposing)
      Sets whether this event is fired after the compositionstart and before the compositionend events.
      Parameters:
      isComposing - true if the event is fired while composing
    • getData

      public Object getData()
      Returns the data contained in the event.
      Returns:
      the data
    • getInputType

      public Object getInputType()
      Returns the input type of the event.
      Returns:
      the input type