Class CSSRule

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

public class CSSRule
extends java.lang.Object
CSS rule representation
  • Constructor Summary

    Constructors 
    Constructor Description
    CSSRule()  
  • Method Summary

    Modifier and Type Method Description
    java.util.List<CSSMedia> getMedia()
    Media list array (for rules involving media queries).
    StyleSheetOrigin getOrigin()
    Parent stylesheet's origin.
    SelectorList getSelectorList()
    Rule selector data.
    CSSStyle getStyle()
    Associated style declaration.
    java.lang.String getStyleSheetId()
    The css style sheet identifier (absent for user agent stylesheet and user-specified stylesheet rules) this rule came from.
    void setMedia​(java.util.List<CSSMedia> media)
    Media list array (for rules involving media queries).
    void setOrigin​(StyleSheetOrigin origin)
    Parent stylesheet's origin.
    void setSelectorList​(SelectorList selectorList)
    Rule selector data.
    void setStyle​(CSSStyle style)
    Associated style declaration.
    void setStyleSheetId​(java.lang.String styleSheetId)
    The css style sheet identifier (absent for user agent stylesheet and user-specified stylesheet rules) this rule came from.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • getStyleSheetId

      public java.lang.String getStyleSheetId()
      The css style sheet identifier (absent for user agent stylesheet and user-specified stylesheet rules) this rule came from.
    • setStyleSheetId

      public void setStyleSheetId​(java.lang.String styleSheetId)
      The css style sheet identifier (absent for user agent stylesheet and user-specified stylesheet rules) this rule came from.
    • getSelectorList

      public SelectorList getSelectorList()
      Rule selector data.
    • setSelectorList

      public void setSelectorList​(SelectorList selectorList)
      Rule selector data.
    • getOrigin

      public StyleSheetOrigin getOrigin()
      Parent stylesheet's origin.
    • setOrigin

      public void setOrigin​(StyleSheetOrigin origin)
      Parent stylesheet's origin.
    • getStyle

      public CSSStyle getStyle()
      Associated style declaration.
    • setStyle

      public void setStyle​(CSSStyle style)
      Associated style declaration.
    • getMedia

      public java.util.List<CSSMedia> getMedia()
      Media list array (for rules involving media queries). The array enumerates media queries starting with the innermost one, going outwards.
    • setMedia

      public void setMedia​(java.util.List<CSSMedia> media)
      Media list array (for rules involving media queries). The array enumerates media queries starting with the innermost one, going outwards.