Class CSSMediaRuleImpl

    • Constructor Detail

      • CSSMediaRuleImpl

        public CSSMediaRuleImpl​(CSSStyleSheetImpl parentStyleSheet,
                                AbstractCSSRuleImpl parentRule,
                                MediaListImpl media)
        Ctor.
        Parameters:
        parentStyleSheet - the parent style sheet
        parentRule - the parent rule
        media - the media
    • Method Detail

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

        public MediaListImpl getMediaList()
        Returns:
        the media list
      • getCssRules

        public CSSRuleListImpl getCssRules()
        Returns:
        the css rules
      • insertRule

        public void insertRule​(java.lang.String rule,
                               int index)
                        throws org.w3c.dom.DOMException
        Insert a new rule at the given index.
        Parameters:
        rule - the rule to be inserted
        index - the insert pos
        Throws:
        org.w3c.dom.DOMException - in case of error
      • deleteRule

        public void deleteRule​(int index)
                        throws org.w3c.dom.DOMException
        Removes a rule at the given index.
        Parameters:
        index - the insert pos
        Throws:
        org.w3c.dom.DOMException - in case of error
      • setRuleList

        public void setRuleList​(CSSRuleListImpl rules)
        Replaces the rule list.
        Parameters:
        rules - the new rule list
      • toString

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

        private void writeObject​(java.io.ObjectOutputStream out)
                          throws java.io.IOException
        Throws:
        java.io.IOException
      • readObject

        private void readObject​(java.io.ObjectInputStream in)
                         throws java.io.IOException,
                                java.lang.ClassNotFoundException
        Throws:
        java.io.IOException
        java.lang.ClassNotFoundException