Class UiEventModifierParams.Builder

java.lang.Object
com.teamdev.jxbrowser.dom.event.UiEventModifierParams.Builder
Enclosing interface:
UiEventModifierParams

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

Builders are created by invoking UiEventModifierParams.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

    • eventParams

      public UiEventModifierParams.Builder eventParams(EventParams eventParams)
      Sets the DOM event parameters.
      Parameters:
      eventParams - the DOM event parameters
      Returns:
      this builder
    • keyModifiers

      public UiEventModifierParams.Builder keyModifiers(KeyModifiers keyModifiers)
      Sets the modifiers for the keyboard and mouse events and indicates which keyboard modifier keys are pressed.
      Parameters:
      keyModifiers - the modifiers for the keyboard and mouse events and indicates which keyboard modifier keys are pressed
      Returns:
      this builder
    • build

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