Class CSSProperty

java.lang.Object
io.webfolder.cdp.type.css.CSSProperty

public class CSSProperty extends Object
CSS property declaration data.
  • Constructor Details

    • CSSProperty

      public CSSProperty()
  • Method Details

    • getName

      public String getName()
      The property name.
    • setName

      public void setName(String name)
      The property name.
    • getValue

      public String getValue()
      The property value.
    • setValue

      public void setValue(String value)
      The property value.
    • isImportant

      public Boolean isImportant()
      Whether the property has "!important" annotation (implies false if absent).
    • setImportant

      public void setImportant(Boolean important)
      Whether the property has "!important" annotation (implies false if absent).
    • isImplicit

      public Boolean isImplicit()
      Whether the property is implicit (implies false if absent).
    • setImplicit

      public void setImplicit(Boolean implicit)
      Whether the property is implicit (implies false if absent).
    • getText

      public String getText()
      The full property text as specified in the style.
    • setText

      public void setText(String text)
      The full property text as specified in the style.
    • isParsedOk

      public Boolean isParsedOk()
      Whether the property is understood by the browser (implies true if absent).
    • setParsedOk

      public void setParsedOk(Boolean parsedOk)
      Whether the property is understood by the browser (implies true if absent).
    • isDisabled

      public Boolean isDisabled()
      Whether the property is disabled by the user (present for source-based properties only).
    • setDisabled

      public void setDisabled(Boolean disabled)
      Whether the property is disabled by the user (present for source-based properties only).
    • getRange

      public SourceRange getRange()
      The entire property range in the enclosing style declaration (if available).
    • setRange

      public void setRange(SourceRange range)
      The entire property range in the enclosing style declaration (if available).
    • getLonghandProperties

      public List<CSSProperty> getLonghandProperties()
      Parsed longhand components of this property if it is a shorthand. This field will be empty if the given property is not a shorthand.
    • setLonghandProperties

      public void setLonghandProperties(List<CSSProperty> longhandProperties)
      Parsed longhand components of this property if it is a shorthand. This field will be empty if the given property is not a shorthand.
    • toString

      public String toString()
      Overrides:
      toString in class Object