Class CSSValueImpl

    • Constructor Detail

      • CSSValueImpl

        public CSSValueImpl​(LexicalUnit value,
                            boolean forcePrimitive)
        Constructor.
        Parameters:
        value - the lexical unit value
        forcePrimitive - true or false
      • CSSValueImpl

        public CSSValueImpl​(LexicalUnit value)
        Ctor.
        Parameters:
        value - the value
    • Method Detail

      • getValue

        public Object getValue()

        getValue.

        Returns:
        the value
      • getCssText

        public String getCssText()

        getCssText.

        Returns:
        the css text
      • setCssText

        public void setCssText​(String cssText)
                        throws DOMException
        Sets the css text.
        Parameters:
        cssText - the new css text
        Throws:
        DOMException - in case of error
      • setDoubleValue

        public void setDoubleValue​(double doubleValue)
                            throws DOMException
        Sets the double value to a new value.
        Parameters:
        doubleValue - the new value
        Throws:
        DOMException - in case of error
      • getDoubleValue

        public double getDoubleValue()
                              throws DOMException

        getDoubleValue.

        Returns:
        the double value.
        Throws:
        DOMException - in case of error
      • getLength

        public int getLength()
        Returns:
        the length
        Throws:
        DOMException - in case of error
      • item

        public CSSValueImpl item​(int index)

        item.

        Parameters:
        index - the position
        Returns:
        the value at the position
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object