Class CSS.CSSStyleSheetHeader

    • Field Summary

       
      Serializable ID
      Modifier and Type Field Description
      protected static long serialVersionUID
       
      Type Fields / Properties (from Google & Browser Specs)
      Modifier and Type Field Description
      boolean disabled
      Denotes whether the stylesheet is disabled.
      Number endColumn
      Column offset of the end of the stylesheet within the resource (zero based).
      Number endLine
      Line offset of the end of the stylesheet within the resource (zero based).
      String frameId
      Owner frame identifier.
      Boolean hasSourceURL
      Whether the sourceURL field value comes from the sourceURL comment.
      boolean isConstructed
      True if this stylesheet is created through new CSSStyleSheet() or imported as a CSS module script.
      boolean isInline
      Whether this stylesheet is created for STYLE tag by parser.
      boolean isMutable
      Whether this stylesheet is mutable.
      Number length
      Size of the content (in characters).
      Boolean loadingFailed
      If the style sheet was loaded from a network resource, this indicates when the resource failed to load
      String origin
      Stylesheet origin.
      Integer ownerNode
      The backend id for the owner node of the stylesheet.
      String sourceMapURL
      URL of source map associated with the stylesheet (if any).
      String sourceURL
      Stylesheet resource URL.
      Number startColumn
      Column offset of the stylesheet within the resource (zero based).
      Number startLine
      Line offset of the stylesheet within the resource (zero based).
      String styleSheetId
      The stylesheet identifier.
      String title
      Stylesheet title.
    • Constructor Summary

      Constructors 
      Constructor Description
      CSSStyleSheetHeader​(ReadOnlyList<Boolean> isPresent, String styleSheetId, String frameId, String sourceURL, String sourceMapURL, String origin, String title, Integer ownerNode, boolean disabled, Boolean hasSourceURL, boolean isInline, boolean isMutable, boolean isConstructed, Number startLine, Number startColumn, Number length, Number endLine, Number endColumn, Boolean loadingFailed)
      Constructor.
    • Field Detail

      • serialVersionUID

        🡇     🗕  🗗  🗖
        protected static final long serialVersionUID
        This fulfils the SerialVersion UID requirement for all classes that implement Java's interface java.io.Serializable. Using the Serializable Implementation offered by java is very easy, and can make saving program state when debugging a lot easier. It can also be used in place of more complicated systems like "hibernate" to store data as well.
        See Also:
        Constant Field Values
      • sourceURL

        🡅  🡇     🗕  🗗  🗖
        public final java.lang.String sourceURL
        Stylesheet resource URL. Empty if this is a constructed stylesheet created using new CSSStyleSheet() (but non-empty if this is a constructed stylesheet imported as a CSS module script).
      • origin

        🡅  🡇     🗕  🗗  🗖
        public final java.lang.String origin
        Stylesheet origin.

        This particular field will have its values resricted to the contents of a CDP defined Enumerated String List. That list may be viewed here:

        📎 CSS.StyleSheetOrigin


        Programmatically Accessing the Enum:
        // Retrieve the list of enumerated strings for this field
        ReadOnlyList<String> enumerationStrs = CSS.StyleSheetOrigin.enumStrList("origin");
        
        // Print the list of strings to the terminal
        for (final String s : enumerationStrs) System.out.println('\"' + s + "\", ");
        
        See Also:
        BaseType.enumStrList(String)
      • isInline

        🡅  🡇     🗕  🗗  🗖
        public final boolean isInline
        Whether this stylesheet is created for STYLE tag by parser. This flag is not set for document.written STYLE tags.
      • isMutable

        🡅  🡇     🗕  🗗  🗖
        public final boolean isMutable
        Whether this stylesheet is mutable. Inline stylesheets become mutable after they have been modified via CSSOM API. <link> element's stylesheets become mutable only if DevTools modifies them. Constructed stylesheets (new CSSStyleSheet()) are mutable immediately after creation.
      • endLine

        🡅  🡇     🗕  🗗  🗖
        public final java.lang.Number endLine
        Line offset of the end of the stylesheet within the resource (zero based).
      • loadingFailed

        🡅  🡇     🗕  🗗  🗖
        public final java.lang.Boolean loadingFailed
        If the style sheet was loaded from a network resource, this indicates when the resource failed to load
        OPTIONALEXPERIMENTAL
    • Constructor Detail

      • CSSStyleSheetHeader

        🡅  🡇     🗕  🗗  🗖
        public CSSStyleSheetHeader​(ReadOnlyList<java.lang.Boolean> isPresent,
                                   java.lang.String styleSheetId,
                                   java.lang.String frameId,
                                   java.lang.String sourceURL,
                                   java.lang.String sourceMapURL,
                                   java.lang.String origin,
                                   java.lang.String title,
                                   java.lang.Integer ownerNode,
                                   boolean disabled,
                                   java.lang.Boolean hasSourceURL,
                                   boolean isInline,
                                   boolean isMutable,
                                   boolean isConstructed,
                                   java.lang.Number startLine,
                                   java.lang.Number startColumn,
                                   java.lang.Number length,
                                   java.lang.Number endLine,
                                   java.lang.Number endColumn,
                                   java.lang.Boolean loadingFailed)
        Constructor. Please review this class' fields for documentation.