Enum Class Cursor

All Implemented Interfaces:
Serializable, Comparable<Cursor>, Constable

public enum Cursor extends Enum<Cursor>
Enumeration for a cursor style.

See Also:
  • Enum Constant Details

    • Arrow

      public static final Cursor Arrow
      Arrow, CSS 'default' cursor.
    • Auto

      public static final Cursor Auto
      Cursor chosen by the browser, CSS 'auto' cursor.
    • Cross

      public static final Cursor Cross
      Crosshair, CSS 'cross' cursor.
    • PointingHand

      public static final Cursor PointingHand
      Pointing hand, CSS 'pointer' cursor.
    • OpenHand

      public static final Cursor OpenHand
      Open hand, CSS 'move' cursor.
    • Wait

      public static final Cursor Wait
      Wait, CSS 'wait' cursor.
    • IBeam

      public static final Cursor IBeam
      Text edit, CSS 'text' cursor.
    • WhatsThis

      public static final Cursor WhatsThis
      Help, CSS 'help' cursor.
  • Method Details

    • values

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

      public static Cursor 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.)
      name - the name of the enum constant to be returned.
      the enum constant with the specified name
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getValue

      public int getValue()
      Returns the numerical representation of this enum.