com.vaadin.shared.ui.grid.
Enum DropLocation
- java.lang.Object
-
- java.lang.Enum<DropLocation>
-
- com.vaadin.shared.ui.grid.DropLocation
-
All Implemented Interfaces:
public enum DropLocation extends Enum<DropLocation>
Defines drop locations within a Grid row.
Since:
8.1
Author:
Vaadin Ltd.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ABOVE
Drop above or before the row.
BELOW
Drop below or after the row.
EMPTY
Dropping into an empty grid, to a sorted grid, when
DropMode.ON_GRID
is used, or to the empty area below the grid rows whenDropMode.ON_TOP
is used.ON_TOP
Drop on top of the row.
-
Method Summary
All Methods Modifier and Type Method Description static DropLocation
valueOf​(String name)
Returns the enum constant of this type with the specified name.
static DropLocation[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ON_TOP
public static final DropLocation ON_TOP
Drop on top of the row.
-
ABOVE
public static final DropLocation ABOVE
Drop above or before the row.
-
BELOW
public static final DropLocation BELOW
Drop below or after the row.
-
EMPTY
public static final DropLocation EMPTY
Dropping into an empty grid, to a sorted grid, when
DropMode.ON_GRID
is used, or to the empty area below the grid rows whenDropMode.ON_TOP
is used.
-
-
Method Detail
-
values
public static DropLocation[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (DropLocation c : DropLocation.values()) System.out.println(c);
Returns:
an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DropLocation valueOf​(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
-