Enum Class DataGrid.ScrollDestination

java.lang.Object
java.lang.Enum<DataGrid.ScrollDestination>
io.jmix.ui.component.DataGrid.ScrollDestination
All Implemented Interfaces:
Serializable, Comparable<DataGrid.ScrollDestination>, Constable
Enclosing interface:
DataGrid<E>

public static enum DataGrid.ScrollDestination extends Enum<DataGrid.ScrollDestination>
Enumeration, specifying the destinations that are supported when scrolling rows or columns into view.
  • Enum Constant Details

    • ANY

      public static final DataGrid.ScrollDestination 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

      public static final DataGrid.ScrollDestination START
      Scrolls so that the element is shown at the start of the viewport. The viewport will, however, not scroll beyond its contents.
    • MIDDLE

      public static final DataGrid.ScrollDestination 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

      public static final DataGrid.ScrollDestination 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

      public static DataGrid.ScrollDestination[] 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 DataGrid.ScrollDestination 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