Enum Class AlignItems

java.lang.Object
java.lang.Enum<AlignItems>
com.webfirmframework.wffweb.css.css3.AlignItems
All Implemented Interfaces:
CssProperty, Serializable, Cloneable, Comparable<AlignItems>, Constable

public enum AlignItems extends Enum<AlignItems> implements CssProperty
 align-items: stretch|center|flex-start|flex-end|baseline|initial|inherit;

 The align-items property specifies the default alignment for items inside the flexible container.

 Tip: Use the align-self property of each item to override the align-items property.
 Default value:  stretch
 Inherited:      no
 Animatable:     no
 Version:        CSS3
 JavaScript syntax:      object.style.alignItems="center"
 
Since:
1.0.0
  • Enum Constant Details

    • STRETCH

      public static final AlignItems STRETCH
    • CENTER

      public static final AlignItems CENTER
    • FLEX_START

      public static final AlignItems FLEX_START
    • FLEX_END

      public static final AlignItems FLEX_END
    • BASELINE

      public static final AlignItems BASELINE
    • INITIAL

      public static final AlignItems INITIAL
    • INHERIT

      public static final AlignItems INHERIT
  • Method Details

    • values

      public static AlignItems[] 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 AlignItems 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
    • getCssName

      public String getCssName()
      Specified by:
      getCssName in interface CssProperty
      Returns:
      the name portion in style, eg align-content for style align-content: center.
    • getCssValue

      public String getCssValue()
      Specified by:
      getCssValue in interface CssProperty
      Returns:
      the value portion in style, eg center for style align-content: center.
    • toString

      public String toString()
      Overrides:
      toString in class Enum<AlignItems>
    • isValid

      public static boolean isValid(String cssValue)
      checks whether the given given cssValue is valid for this css property, i.e. whether it can have a corresponding object from it.
      Parameters:
      cssValue -
      Returns:
      true if the given cssValue has a corresponding object.
      Since:
      1.0.0
    • getThis

      public static AlignItems getThis(String cssValue)
      gets the corresponding object for the given cssValue or null for invalid cssValue.
      Parameters:
      cssValue - the css property value without including !important in it.
      Returns:
      the corresponding object for the given cssValue or null for invalid cssValue.
      Since:
      1.0.0