Enum CssProperty

  • All Implemented Interfaces:
    Serializable, Comparable<CssProperty>

    public enum CssProperty
    extends Enum<CssProperty>
    A CSS property definition including what value types are supported and what is the list of allowed values available by default (if any).

    For example, the "color" property supportedValueTypes is CssValueType.COLOR and its allowedValues is the entire list of CssColour entries.

    On the other hand, the "width" property supportedValueTypes are CssValueType.LENGTH and CssValueType.PERCENTAGE and its allowedValues are "auto" or "inherit". That means the following values are all considered valid: "100px", "auto", "50%".

    • Method Detail

      • values

        public static CssProperty[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (CssProperty c : CssProperty.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static CssProperty valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
        NullPointerException - if the argument is null
      • getName

        public String getName()
      • supportsValueType

        public boolean supportsValueType​(CssValueType type)