com.vaadin.flow.component.grid.dnd.
Enum Class GridDropMode
All Implemented Interfaces:
Defines the locations within the Grid row where an element can be dropped.
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 ConstantDescriptionThe drop event can happen between Grid rows.
The drop event will not happen on any specific row, it will show the drop target outline around the whole grid.
The drop event can happen on top of Grid rows.
The drop event can happen either on top of or between Grid rows.
-
Method Summary
Modifier and TypeMethodDescriptionGets name that is used in the client side representation of the component.
static GridDropMode
Returns the enum constant of this class with the specified name.
static GridDropMode[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
BETWEEN
The drop event can happen between Grid rows. The drop is above a row when the cursor is over the top 50% of a row, otherwise below the row.
-
ON_TOP
The drop event can happen on top of Grid rows. The target of the drop is the row under the cursor at the time of the drop event.
-
ON_TOP_OR_BETWEEN
The drop event can happen either on top of or between Grid rows. The drop is either
- above a row when the cursor is over a specified portion of the top part of the row,
- below when the cursor is over a specified portion of the bottom part of the row, or
- on top when the cursor is over the middle portions of the row.
-
ON_GRID
The drop event will not happen on any specific row, it will show the drop target outline around the whole grid. For this drop target, the drop event will not contain any target row information. This is the drop target used when the grid is completely empty.
-
-
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 -
getClientName
Gets name that is used in the client side representation of the component.
Returns:
the name used in the client side representation of the component.
-