Class CSSImportRule

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, org.htmlunit.corejs.javascript.ConstProperties, org.htmlunit.corejs.javascript.debug.DebuggableObject, org.htmlunit.corejs.javascript.Scriptable, org.htmlunit.corejs.javascript.SymbolScriptable

    public class CSSImportRule
    extends CSSRule
    A JavaScript object for CSSImportRule.
    See Also:
    Serialized Form
    • Constructor Detail

      • CSSImportRule

        public CSSImportRule()
        Creates a new instance.
      • CSSImportRule

        protected CSSImportRule​(CSSStyleSheet stylesheet,
                                org.htmlunit.cssparser.dom.CSSImportRuleImpl rule)
        Creates a new instance.
        Parameters:
        stylesheet - the Stylesheet of this rule.
        rule - the wrapped rule
    • Method Detail

      • jsConstructor

        public void jsConstructor()
        Creates an instance.
        Overrides:
        jsConstructor in class CSSRule
      • getHref

        public java.lang.String getHref()
        Returns the URL of the imported style sheet.
        Returns:
        the URL of the imported style sheet
      • getMedia

        public MediaList getMedia()
        Returns the media types that the imported CSS style sheet applies to.
        Returns:
        the media types that the imported CSS style sheet applies to
      • getStyleSheet

        public CSSStyleSheet getStyleSheet()
        Returns the style sheet referred to by this rule.
        Returns:
        the style sheet referred to by this rule
      • getImportRule

        private org.htmlunit.cssparser.dom.CSSImportRuleImpl getImportRule()
        Returns the wrapped rule, as an import rule.
        Returns:
        the wrapped rule, as an import rule