Class KeyReleased.Builder

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

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

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

    • keyModifiers

      public KeyReleased.Builder keyModifiers(KeyModifiers keyModifiers)
      Sets the keyboard modifiers applied.
      Parameters:
      keyModifiers - the keyboard modifiers
      Returns:
      this builder
    • keyLocation

      public KeyReleased.Builder keyLocation(KeyLocation keyLocation)
      Sets the location of the key on the keyboard.
      Parameters:
      keyLocation - the location of the key on the keyboard.
      Returns:
      this builder
    • build

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