Class TouchEnded.Builder

java.lang.Object
com.teamdev.jxbrowser.ui.event.TouchEnded.Builder
Enclosing interface:
TouchEnded

public static final class TouchEnded.Builder extends Object
A builder of TouchEnded.

Builders are created by invoking TouchEnded.newBuilder(List)}. Each of the setter methods modifies the state of the builder and returns the same instance. Builders are not thread-safe and should not be used concurrently from multiple threads without external synchronization.

  • Method Details

    • changedTouches

      public TouchEnded.Builder changedTouches(List<TouchPoint> points)
      Sets the touch points that have just been removed, and no longer touching the surface.
      Parameters:
      points - the touch points
      Returns:
      this builder
    • targetTouches

      public TouchEnded.Builder targetTouches(List<TouchPoint> points)
      Sets the touch points that started on the target element of this event.
      Parameters:
      points - the touch points
      Returns:
      this builder
    • keyModifiers

      public TouchEnded.Builder keyModifiers(KeyModifiers keyModifiers)
      Sets the keyboard modifiers to apply.
      Parameters:
      keyModifiers - the keyboard modifiers
      Returns:
      this builder
    • build

      public TouchEnded build()
      Creates a new TouchEnded instance on top of this builder.
      Returns:
      a new TouchEnded instance