Enum Class ResponsiveGridLayout.JustifyContent

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

public static enum ResponsiveGridLayout.JustifyContent extends Enum<ResponsiveGridLayout.JustifyContent>
Represents the default behavior for how flex items are laid out along the main axis on the current row.

Corresponds to the justify-content CSS attribute.

See Also:
  • Enum Constant Details

    • START

      public static final ResponsiveGridLayout.JustifyContent START
      Items are packed toward the start of the flex-direction.

      Corresponds to the .justify-content-start style.

    • CENTER

      public static final ResponsiveGridLayout.JustifyContent CENTER
      Items are centered along the line.

      Corresponds to the .justify-content-center style.

    • END

      public static final ResponsiveGridLayout.JustifyContent END
      Items are packed toward the end of the flex-direction.

      Corresponds to the .justify-content-end style.

    • AROUND

      public static final ResponsiveGridLayout.JustifyContent AROUND
      Items are evenly distributed in the line with equal space around them.

      Note that visually the spaces aren't equal, since all the items have equal space on both sides. The first item will have one unit of space against the container edge, but two units of space between the next item because that next item has its own spacing that applies.

      Corresponds to the .justify-content-around style.

    • BETWEEN

      public static final ResponsiveGridLayout.JustifyContent BETWEEN
      Items are evenly distributed in the line. First item is on the start line, last item on the end line.

      Corresponds to the .justify-content-between style.

  • Method Details

    • values

      public static ResponsiveGridLayout.JustifyContent[] 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 ResponsiveGridLayout.JustifyContent 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