Enum Class CssDefaulting

java.lang.Object
java.lang.Enum<CssDefaulting>
org.jhotdraw8.css.value.CssDefaulting
All Implemented Interfaces:
Serializable, Comparable<CssDefaulting>, Constable

public enum CssDefaulting extends Enum<CssDefaulting>
CSS Defaulting keywords can be applied to all CSS properties in HTML and SVG.

References:

CSS Cascading and Inheritance Level 4, Chapter 7. Defaulting
w3.org
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    Enum.EnumDesc<E extends Enum<E>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    If the cascaded value of a property is the "inherit" keyword, the property's specified and computed values are the inherited value.
    If the cascaded value of a property is the "initial" keyword, the property's specified value is its initial value.
    If the cascaded value of a property is the revert keyword, the behavior depends on the origin to which the declaration belongs: user-agent origin Equivalent to unset user origin Rolls back the cascaded value to the user-agent level, so that the specified value is calculated as if no author-level or user-level rules were specified for this property on this element. author origin Rolls back the cascaded value to the user level, so that the specified value is calculated as if no author-level rules were specified for this property on this element.
    If the cascaded value of a property is the "unset" keyword, then if it is an inherited property, this is treated as inherit, and if it is not, this is treated as initial.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the enum constant of this class with the specified name.
    static CssDefaulting[]
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • INITIAL

      public static final CssDefaulting INITIAL
      If the cascaded value of a property is the "initial" keyword, the property's specified value is its initial value.
    • INHERIT

      public static final CssDefaulting INHERIT
      If the cascaded value of a property is the "inherit" keyword, the property's specified and computed values are the inherited value.
    • UNSET

      public static final CssDefaulting UNSET
      If the cascaded value of a property is the "unset" keyword, then if it is an inherited property, this is treated as inherit, and if it is not, this is treated as initial.

      This keyword effectively erases all declared values occurring earlier in the cascade, correctly inheriting or not as appropriate for the property (or all longhands of a shorthand).

    • REVERT

      public static final CssDefaulting REVERT
      If the cascaded value of a property is the revert keyword, the behavior depends on the origin to which the declaration belongs:
      user-agent origin
      Equivalent to unset
      user origin
      Rolls back the cascaded value to the user-agent level, so that the specified value is calculated as if no author-level or user-level rules were specified for this property on this element.
      author origin
      Rolls back the cascaded value to the user level, so that the specified value is calculated as if no author-level rules were specified for this property on this element. For the purpose of revert, this origin includes the Animation origin.
  • Method Details

    • values

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