Package com.simsilica.lemur.dnd
Enum Class DragStatus
- All Implemented Interfaces:
Serializable
,Comparable<DragStatus>
,Constable
Represents the status of a current drag operation with respect
to whether the item can be dropped successfully or not.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe Draggable is over a target container but it has indicated that the current target or location is invalid.The Draggable is currently not over any target.The draggable is over a target container that has indicated that the target and location is valid for dropping the item. -
Method Summary
Modifier and TypeMethodDescriptionstatic DragStatus
Returns the enum constant of this class with the specified name.static DragStatus[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NoTarget
The Draggable is currently not over any target. -
InvalidTarget
The Draggable is over a target container but it has indicated that the current target or location is invalid. -
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
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
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 nameNullPointerException
- if the argument is null
-