Enum Class AlignContent

java.lang.Object
java.lang.Enum<AlignContent>
com.oorian.css.AlignContent
All Implemented Interfaces:
Serializable, Comparable<AlignContent>, Constable

public enum AlignContent extends Enum<AlignContent>
CSS align-content property values for flexbox container cross-axis alignment.

The align-content property aligns a flex container's lines within the flex container when there is extra space on the cross-axis. This property has no effect on single-line flex containers.

Usage:


 element.setAlignContent(AlignContent.CENTER);
 element.setAlignContent(AlignContent.SPACE_BETWEEN);
 
Since:
2012
Version:
1.0
Author:
Marvin P. Warble Jr.
See Also:
  • Enum Constant Details

    • STRETCH

      public static final AlignContent STRETCH
      Lines stretch to fill the remaining space (default).
    • CENTER

      public static final AlignContent CENTER
      Lines are packed toward the center.
    • FLEX_START

      public static final AlignContent FLEX_START
      Lines are packed toward the start.
    • FLEX_END

      public static final AlignContent FLEX_END
      Lines are packed toward the end.
    • SPACE_BETWEEN

      public static final AlignContent SPACE_BETWEEN
      Lines are evenly distributed with no space at edges.
    • SPACE_AROUND

      public static final AlignContent SPACE_AROUND
      Lines are evenly distributed with equal space around each.
    • SPACE_EVENLY

      public static final AlignContent SPACE_EVENLY
      Lines are evenly distributed with equal space between them.
    • START

      public static final AlignContent START
      Lines packed to the start (writing-mode aware).
    • END

      public static final AlignContent END
      Lines packed to the end (writing-mode aware).
    • NORMAL

      public static final AlignContent NORMAL
      Normal alignment behavior (context-dependent).
    • BASELINE

      public static final AlignContent BASELINE
      Lines are aligned at their baselines.
    • FIRST_BASELINE

      public static final AlignContent FIRST_BASELINE
      Lines are aligned at the first baseline.
    • LAST_BASELINE

      public static final AlignContent LAST_BASELINE
      Lines are aligned at the last baseline.
    • INITIAL

      public static final AlignContent INITIAL
      Sets to default value.
    • INHERIT

      public static final AlignContent INHERIT
      Inherits from parent element.
  • Method Details

    • values

      public static 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 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
    • getValue

      public String getValue()
      Returns the CSS value string.
      Returns:
      the CSS value
    • toString

      public String toString()
      Returns the CSS value string.
      Overrides:
      toString in class Enum<AlignContent>
      Returns:
      the CSS value