Enum Class ColumnsMode

java.lang.Object
java.lang.Enum<ColumnsMode>
io.jmix.ui.app.bulk.ColumnsMode
All Implemented Interfaces:
Serializable, Comparable<ColumnsMode>, Constable

public enum ColumnsMode extends Enum<ColumnsMode>
Defines the number of editor columns in bulk editor.
  • Enum Constant Details

    • ONE_COLUMN

      public static final ColumnsMode ONE_COLUMN
    • TWO_COLUMNS

      public static final ColumnsMode TWO_COLUMNS
  • Field Details

    • columnsCount

      protected final int columnsCount
  • Method Details

    • values

      public static ColumnsMode[] 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 ColumnsMode 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
    • getColumnsCount

      public int getColumnsCount()
    • fromColumnsCount

      @Nullable public static ColumnsMode fromColumnsCount(int count)
      Parameters:
      count - number of columns
      Returns:
      null if there is no enum value for the given count