Class MouseModifiers.Builder

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

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

Builders are created by invoking MouseModifiers.newBuilder(). 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

    • primaryButtonDown

      public MouseModifiers.Builder primaryButtonDown(boolean flag)
      Sets the flag indicating whether the primary mouse button is down.
      Parameters:
      flag - a new value
      Returns:
      this builder
    • middleButtonDown

      public MouseModifiers.Builder middleButtonDown(boolean flag)
      Sets the flag indicating whether the middle mouse button is down.
      Parameters:
      flag - a new value
      Returns:
      this builder
    • secondaryButtonDown

      public MouseModifiers.Builder secondaryButtonDown(boolean flag)
      Sets the flag indicating whether the secondary mouse button is down.
      Parameters:
      flag - a new value
      Returns:
      this builder
    • build

      public MouseModifiers build()
      Returns a new MouseModifiers instance built from the current state of this builder.
      Returns:
      a new MouseModifiers instance