Class FSCssValue

    • Constructor Detail

      • FSCssValue

        public FSCssValue​(org.w3c.dom.css.CSSPrimitiveValue primitive,
                          String newValue)
        Use a given CSSPrimitiveValue, with an overriding internal text value
        Parameters:
        primitive - PARAM
        newValue - PARAM
    • Method Detail

      • getNewIdentValue

        public static FSCssValue getNewIdentValue​(String identValue)
      • toString

        public String toString()
        Returns the string representation of the instance, in this case, the CSS text value.
        Overrides:
        toString in class Object
        Returns:
        A string representation of the object.
      • setCssText

        public void setCssText​(String cssText)
        Not supported, class is immutable. Sets the string representation of the current value.
        Specified by:
        setCssText in interface org.w3c.dom.css.CSSValue
        Parameters:
        cssText - The new cssText value
      • setFloatValue

        public void setFloatValue​(short unitType,
                                  float floatValue)
        Not supported, class is immutable. A method to set the float value with a specified unit.
        Specified by:
        setFloatValue in interface org.w3c.dom.css.CSSPrimitiveValue
        Parameters:
        unitType - The new floatValue value
        floatValue - The new floatValue value
      • setStringValue

        public void setStringValue​(short stringType,
                                   String stringValue)
        Not supported, class is immutable. A method to set the string value with the specified unit.
        Specified by:
        setStringValue in interface org.w3c.dom.css.CSSPrimitiveValue
        Parameters:
        stringType - The new stringValue value
        stringValue - The new stringValue value
      • getCssText

        public String getCssText()
        A string representation of the current value.
        Specified by:
        getCssText in interface org.w3c.dom.css.CSSValue
        Returns:
        The _cssText value
      • getCssValueType

        public short getCssValueType()
        A code defining the type of the value as defined above.
        Specified by:
        getCssValueType in interface org.w3c.dom.css.CSSValue
        Returns:
        The cssValueType value
      • getFloatValue

        public float getFloatValue​(short unitType)
        This method is used to get a float value in a specified unit.
        Specified by:
        getFloatValue in interface org.w3c.dom.css.CSSPrimitiveValue
        Parameters:
        unitType - PARAM
        Returns:
        The floatValue value
      • getPrimitiveType

        public short getPrimitiveType()
        The type of the value as defined by the constants specified above.
        Specified by:
        getPrimitiveType in interface org.w3c.dom.css.CSSPrimitiveValue
        Returns:
        The primitiveType value
      • getStringValue

        public String getStringValue()
        This method is used to get the string value.
        Specified by:
        getStringValue in interface org.w3c.dom.css.CSSPrimitiveValue
        Returns:
        The stringValue value