Class CSSStyleRuleImpl

    • Constructor Detail

      • CSSStyleRuleImpl

        public CSSStyleRuleImpl​(CSSStyleSheetImpl parentStyleSheet,
                                AbstractCSSRuleImpl parentRule,
                                SelectorList selectors)
        Ctor.
        Parameters:
        parentStyleSheet - the parent style sheet
        parentRule - the parent rule
        selectors - the selectors
    • Method Detail

      • getSelectors

        public SelectorList getSelectors()
        Returns:
        all selectors
      • setSelectors

        public void setSelectors​(SelectorList selectors)
        Updates the selectors.
        Parameters:
        selectors - the new selectors
      • setCssText

        public void setCssText​(java.lang.String cssText)
                        throws org.w3c.dom.DOMException
        Sets the css text.
        Specified by:
        setCssText in class AbstractCSSRuleImpl
        Parameters:
        cssText - the new css text
        Throws:
        org.w3c.dom.DOMException
      • getSelectorText

        public java.lang.String getSelectorText()
        Returns:
        the selector text
      • setSelectorText

        public void setSelectorText​(java.lang.String selectorText)
                             throws org.w3c.dom.DOMException
        Sets the selector text.
        Parameters:
        selectorText - the new selector text
        Throws:
        org.w3c.dom.DOMException - in clase of error
      • setStyle

        public void setStyle​(CSSStyleDeclarationImpl style)
        Replaces the style.
        Parameters:
        style - the new style
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object