Class MouseExited.Builder

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

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

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

    • locationOnScreen

      public MouseExited.Builder locationOnScreen(Point locationOnScreen)
      Sets the mouse position relative to the bounds of the screen.
      Parameters:
      locationOnScreen - the mouse position
      Returns:
      this builder
    • button

      public MouseExited.Builder button(MouseButton mouseButton)
      Sets the button that is pressed.
      Parameters:
      mouseButton - the pressed button
      Returns:
      this builder
    • keyModifiers

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

      public MouseExited.Builder mouseModifiers(MouseModifiers mouseModifiers)
      Sets the mouse modifiers applied.
      Parameters:
      mouseModifiers - the mouse modifiers
      Returns:
      this builder
    • build

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