Enum Class EffectAllowed

java.lang.Object
java.lang.Enum<EffectAllowed>
com.vaadin.flow.component.dnd.EffectAllowed
All Implemented Interfaces:
Serializable, Comparable<EffectAllowed>, Constable

public enum EffectAllowed extends Enum<EffectAllowed>
Used to specify the effect that is allowed for a drag operation.
Since:
2.0
Author:
Vaadin Ltd
  • Enum Constant Details

    • NONE

      public static final EffectAllowed NONE
      The item may not be dropped.
    • COPY

      public static final EffectAllowed COPY
      A copy of the source item may be made at the new location.
    • MOVE

      public static final EffectAllowed MOVE
      An item may be moved to a new location.
    • COPY_MOVE

      public static final EffectAllowed COPY_MOVE
      A copy or move operation is permitted.
    • ALL

      public static final EffectAllowed ALL
      All operations are permitted.
    • UNINITIALIZED

      public static final EffectAllowed UNINITIALIZED
      Default state, equivalent to ALL.
  • Method Details

    • values

      public static EffectAllowed[] 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 EffectAllowed 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
    • getClientPropertyValue

      public String 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.