Class TouchStarted.Builder

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

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

Builders are created by invoking TouchStarted.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 TouchStarted.Builder changedTouches(List<TouchPoint> points)
      Sets the touch points that became active with the current event.
      Parameters:
      points - the touch points
      Returns:
      this builder
    • targetTouches

      public TouchStarted.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 TouchStarted.Builder keyModifiers(KeyModifiers keyModifiers)
      Sets the keyboard modifiers to apply.
      Parameters:
      keyModifiers - the keyboard modifiers
      Returns:
      this builder
    • build

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