Package io.jmix.ui.component
Enum Class DataGrid.ScrollDestination
- All Implemented Interfaces:
Serializable
,Comparable<DataGrid.ScrollDestination>
,Constable
Enumeration, specifying the destinations that are supported when scrolling
rows or columns into view.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionScroll as little as possible to show the target element.Scrolls so that the element is shown at the end of the viewport.Scrolls so that the element is shown in the middle of the viewport.Scrolls so that the element is shown at the start of the viewport. -
Method Summary
Modifier and TypeMethodDescriptionstatic DataGrid.ScrollDestination
Returns the enum constant of this class with the specified name.static DataGrid.ScrollDestination[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ANY
Scroll as little as possible to show the target element. If the element fits into view, this works as START or END depending on the current scroll position. If the element does not fit into view, this works as START. -
START
Scrolls so that the element is shown at the start of the viewport. The viewport will, however, not scroll beyond its contents. -
MIDDLE
Scrolls so that the element is shown in the middle of the viewport. The viewport will, however, not scroll beyond its contents, given more elements than what the viewport is able to show at once. Under no circumstances will the viewport scroll before its first element. -
END
Scrolls so that the element is shown at the end of the viewport. The viewport will, however, not scroll before its first element.
-
-
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
-