Enum Class AlignSelf

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

public enum AlignSelf extends Enum<AlignSelf>
CSS align-self property values for individual flexbox item alignment.

The align-self property specifies the alignment for a specific flex item, overriding the container's align-items value. It aligns the item on the cross-axis.

Usage:


 item.setAlignSelf(AlignSelf.CENTER);
 item.setAlignSelf(AlignSelf.FLEX_END);
 
Since:
2012
Version:
1.0
Author:
Marvin P. Warble Jr.
See Also:
  • Enum Constant Details

    • AUTO

      public static final AlignSelf AUTO
      Inherits align-items value from parent (default).
    • STRETCH

      public static final AlignSelf STRETCH
      Item stretches to fill the container.
    • CENTER

      public static final AlignSelf CENTER
      Item is centered on the cross-axis.
    • FLEX_START

      public static final AlignSelf FLEX_START
      Item is aligned at the start of the cross-axis.
    • FLEX_END

      public static final AlignSelf FLEX_END
      Item is aligned at the end of the cross-axis.
    • BASELINE

      public static final AlignSelf BASELINE
      Item is aligned at its baseline.
    • START

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

      public static final AlignSelf END
      Item packed to the end (writing-mode aware).
    • SELF_START

      public static final AlignSelf SELF_START
      Item aligned to its start edge.
    • SELF_END

      public static final AlignSelf SELF_END
      Item aligned to its end edge.
    • NORMAL

      public static final AlignSelf NORMAL
      Normal alignment behavior (context-dependent).
    • FIRST_BASELINE

      public static final AlignSelf FIRST_BASELINE
      Item is aligned at the first baseline.
    • LAST_BASELINE

      public static final AlignSelf LAST_BASELINE
      Item is aligned at the last baseline.
    • INITIAL

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

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

    • values

      public static AlignSelf[] 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 AlignSelf 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<AlignSelf>
      Returns:
      the CSS value