Enum Class FontStretch

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

public enum FontStretch extends Enum<FontStretch> implements CssProperty
font-stretch: ultra-condensed|extra-condensed|condensed|semi-condensed|normal| semi-expanded|expanded|extra-expanded|ultra-expanded|initial|inherit;
  • Enum Constant Details

    • ULTRA_CONDENSED

      public static final FontStretch ULTRA_CONDENSED
    • EXTRA_CONDENSED

      public static final FontStretch EXTRA_CONDENSED
    • CONDENSED

      public static final FontStretch CONDENSED
    • SEMI_CONDENSED

      public static final FontStretch SEMI_CONDENSED
    • NORMAL

      public static final FontStretch NORMAL
    • SEMI_EXPANDED

      public static final FontStretch SEMI_EXPANDED
    • EXPANDED

      public static final FontStretch EXPANDED
    • EXTRA_EXPANDED

      public static final FontStretch EXTRA_EXPANDED
    • ULTRA_EXPANDED

      public static final FontStretch ULTRA_EXPANDED
    • INITIAL

      public static final FontStretch INITIAL
    • INHERIT

      public static final FontStretch INHERIT
  • Method Details

    • values

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