Package org.gnome.gdk
Enum Class DragAction
- All Implemented Interfaces:
Enumeration
,Serializable
,Comparable<DragAction>
,Constable
@Generated("io.github.jwharm.JavaGI")
public enum DragAction
extends Enum<DragAction>
implements Enumeration
Used in
GdkDrop
and GdkDrag
to indicate the actions that the
destination can and should do with the dropped data.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Type
getType()
Get the GType of the DragAction classint
getValue()
Get the numeric value of this enumboolean
isUnique()
Checks if this DragAction represents a single action or includes multiple actions.static DragAction
of
(int value) Create a new DragAction for the provided valuestatic DragAction
Returns the enum constant of this class with the specified name.static DragAction[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
COPY
Copy the data. -
MOVE
Move the data, i.e. first copy it, then delete it from the source using the DELETE target of the X selection protocol. -
LINK
Add a link to the data. Note that this is only useful if source and destination agree on what it means, and is not supported on all platforms. -
ASK
Ask the user what to do with the data.
-
-
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
-
of
Create a new DragAction for the provided value- Parameters:
value
- the bitfield value- Returns:
- the bitfield for the provided value
-
getValue
public int getValue()Get the numeric value of this enum- Specified by:
getValue
in interfaceEnumeration
- Returns:
- the enum value
-
getType
-
isUnique
public boolean isUnique()Checks if this DragAction represents a single action or includes multiple actions.When this DragAction is 0 - ie no action was given,
true
is returned.- Returns:
true
if exactly one action was given
-