Interface ExtendedCSSRule

All Superinterfaces:
CSSRule
All Known Subinterfaces:
CSSConditionRule, CSSCounterStyleRule, CSSDeclarationRule, CSSFontFeatureValuesRule, CSSGroupingRule, CSSKeyframeRule, CSSKeyframesRule, CSSMarginRule, CSSNamespaceRule, CSSSupportsRule, ExtendedCSSFontFaceRule, ExtendedCSSMediaRule, ExtendedCSSPageRule, ExtendedCSSStyleRule
All Known Implementing Classes:
AbstractCSSRule, BaseCSSDeclarationRule, CounterStyleRule, CSSStyleDeclarationRule, FontFaceRule, FontFeatureValuesRule, GroupingRule, ImportRule, KeyframeRule, KeyframesRule, MarginRule, MediaRule, NamespaceRule, PageRule, StyleRule, SupportsRule, UnknownRule, ViewportRule

public interface ExtendedCSSRule extends CSSRule
An extended CSS rule.
  • Field Details

  • Method Details

    • clone

      Obtain a clone of this rule whose parent sheet is parentSheet.
      Parameters:
      parentSheet - the parent sheet for the new rule.
      Returns:
      a clone of this rule with the given parent sheet.
    • getMinifiedCssText

      String getMinifiedCssText()
      A minified parsable textual representation of the rule. This reflects the current state of the rule and not its initial value.
      Returns:
      the minified textual representation of the rule.
    • getParentRule

      ExtendedCSSRule getParentRule()
      If this rule is contained inside another rule, return that rule. If it is not nested inside any other rules, return null.
      Specified by:
      getParentRule in interface CSSRule
      Returns:
      the containing rule, if any, otherwise null.
    • getParentStyleSheet

      ExtendedCSSStyleSheet<? extends ExtendedCSSRule> getParentStyleSheet()
      Get the style sheet that contains this rule.
      Specified by:
      getParentStyleSheet in interface CSSRule
      Returns:
      the style sheet, or null if no sheet contains this rule.
    • writeCssText

      void writeCssText(SimpleWriter wri, StyleFormattingContext context) throws IOException
      Write a serialization of this rule to the given simple writer, according to the given context.
      Parameters:
      wri - the simple writer object.
      context - the formatting context.
      Throws:
      IOException - if an error happened while writing.