Enum Class MouseEvent.Button

java.lang.Object
java.lang.Enum<MouseEvent.Button>
com.teamdev.jxbrowser.dom.event.MouseEvent.Button
All Implemented Interfaces:
Serializable, Comparable<MouseEvent.Button>, Constable
Enclosing interface:
MouseEvent

public static enum MouseEvent.Button extends Enum<MouseEvent.Button>
A DOM mouse button.
  • Enum Constant Details

    • MAIN

      public static final MouseEvent.Button MAIN
      A main mouse button. Usually the left button or the un-initialized state.
    • MIDDLE

      public static final MouseEvent.Button MIDDLE
      An auxiliary button. Usually the wheel button or the middle button (if present).
    • BACK

      public static final MouseEvent.Button BACK
      A fourth button. Typically the Browser Back button.
    • FORWARD

      public static final MouseEvent.Button FORWARD
      A fifth button. Typically the Browser Forward button.
  • Method Details

    • values

      public static MouseEvent.Button[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static MouseEvent.Button valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • of

      public static MouseEvent.Button of(int number)
      Returns the Button instance for the given value.
      Throws:
      IllegalArgumentException - when there is no button associated with the given value
    • number

      public int number()
      Returns a number of the button.