Interface TouchEventParams

All Superinterfaces:
EventParams, UiEventModifierParams

public interface TouchEventParams extends UiEventModifierParams
The DOM touch event parameters.
Since:
8.0.0
  • Nested Class Summary

    Nested classes/interfaces inherited from interface com.teamdev.jxbrowser.dom.event.UiEventModifierParams

    UiEventModifierParams.Builder
  • Method Summary

    Modifier and Type
    Method
    Description
    default List<TouchPoint>
    Contains touch points that have changed since the last touch event.
    default boolean
    Returns true if the event bubbles up through the DOM.
    default boolean
    Returns true if the event can be canceled, and therefore prevented as if the event never happened.
    default boolean
    Returns true if the event is trusted, and therefore was generated by a user action.
    default KeyModifiers
    Returns the key modifiers that are applied to the event.
    default List<TouchPoint>
    Contains all touch points that are specific to the target element.
    default List<TouchPoint>
    Returns all touch points that are currently on the screen.
  • Method Details

    • isBubbles

      default boolean isBubbles()
      Returns true if the event bubbles up through the DOM.
      Specified by:
      isBubbles in interface EventParams
      Specified by:
      isBubbles in interface UiEventModifierParams
    • isCancelable

      default boolean isCancelable()
      Returns true if the event can be canceled, and therefore prevented as if the event never happened.
      Specified by:
      isCancelable in interface EventParams
      Specified by:
      isCancelable in interface UiEventModifierParams
    • isTrusted

      default boolean isTrusted()
      Returns true if the event is trusted, and therefore was generated by a user action.
      Specified by:
      isTrusted in interface EventParams
      Specified by:
      isTrusted in interface UiEventModifierParams
    • keyModifiers

      default KeyModifiers keyModifiers()
      Returns the key modifiers that are applied to the event.
      Specified by:
      keyModifiers in interface UiEventModifierParams
    • touches

      default List<TouchPoint> touches()
      Returns all touch points that are currently on the screen.
    • changedTouches

      default List<TouchPoint> changedTouches()
      Contains touch points that have changed since the last touch event.
    • targetTouches

      default List<TouchPoint> targetTouches()
      Contains all touch points that are specific to the target element.