Class CSSImportRule

java.lang.Object
org.htmlunit.corejs.javascript.ScriptableObject
All Implemented Interfaces:
Serializable, 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:
  • Field Details

  • Constructor Details

    • 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 Details

    • jsConstructor

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

      public 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