Enum Class DragStatus

java.lang.Object
java.lang.Enum<DragStatus>
com.simsilica.lemur.dnd.DragStatus
All Implemented Interfaces:
Serializable, Comparable<DragStatus>, Constable

public enum DragStatus extends Enum<DragStatus>
Represents the status of a current drag operation with respect to whether the item can be dropped successfully or not.
  • Enum Constant Details

    • NoTarget

      public static final DragStatus NoTarget
      The Draggable is currently not over any target.
    • InvalidTarget

      public static final DragStatus InvalidTarget
      The Draggable is over a target container but it has indicated that the current target or location is invalid.
    • ValidTarget

      public static final DragStatus ValidTarget
      The draggable is over a target container that has indicated that the target and location is valid for dropping the item.
  • Method Details

    • values

      public static DragStatus[] 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 DragStatus 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