Enum Class FlexStyle.AlignContent

java.lang.Object
java.lang.Enum<FlexStyle.AlignContent>
com.spinyowl.legui.style.flex.FlexStyle.AlignContent
All Implemented Interfaces:
Serializable, Comparable<FlexStyle.AlignContent>, Constable
Enclosing class:
FlexStyle

public static enum FlexStyle.AlignContent extends Enum<FlexStyle.AlignContent>
Specifies the alignment between the lines inside a flexible container when the items do not use all available space.
  • Enum Constant Details

    • STRETCH

      public static final FlexStyle.AlignContent STRETCH
      Default value. Lines stretch to take up the remaining space.
    • CENTER

      public static final FlexStyle.AlignContent CENTER
      Lines are packed toward the center of the flex container.
    • FLEX_START

      public static final FlexStyle.AlignContent FLEX_START
      Lines are packed toward the start of the flex container.
    • FLEX_END

      public static final FlexStyle.AlignContent FLEX_END
      Lines are packed toward the end of the flex container.
    • SPACE_BETWEEN

      public static final FlexStyle.AlignContent SPACE_BETWEEN
      Lines are evenly distributed in the flex container.
    • SPACE_AROUND

      public static final FlexStyle.AlignContent SPACE_AROUND
      Lines are evenly distributed in the flex container, with half-size spaces on either end.
    • INITIAL

      public static final FlexStyle.AlignContent INITIAL
      Sets this property to its default value.
    • INHERIT

      public static final FlexStyle.AlignContent INHERIT
      Inherits this property from its parent element..
  • Method Details

    • values

      public static FlexStyle.AlignContent[] 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 FlexStyle.AlignContent 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