com.vaadin.flow.component.dnd.
Enum Class EffectAllowed
All Implemented Interfaces:
Used to specify the effect that is allowed for a drag operation.
Since:
2.0
Author:
Vaadin Ltd
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAll operations are permitted.
A copy of the source item may be made at the new location.
A copy or link operation is permitted.
A copy or move operation is permitted.
A link may be established to the source at the new location.
A link or move operation is permitted.
An item may be moved to a new location.
The item may not be dropped.
Default state, equivalent to ALL.
-
Method Summary
Modifier and TypeMethodDescriptionGet the lower case string value that is accepted by the client side drag event.
static EffectAllowed
Returns the enum constant of this class with the specified name.
static EffectAllowed[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NONE
The item may not be dropped.
-
COPY
A copy of the source item may be made at the new location.
-
MOVE
An item may be moved to a new location.
-
LINK
A link may be established to the source at the new location.
-
COPY_MOVE
A copy or move operation is permitted.
-
COPY_LINK
A copy or link operation is permitted.
-
LINK_MOVE
A link or move operation is permitted.
-
ALL
All operations are permitted.
-
UNINITIALIZED
Default state, equivalent to ALL.
-
-
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 -
getClientPropertyValue
Get the lower case string value that is accepted by the client side drag event.
Returns:
String clientPropertyValue accepted by the client side drag event.
-