fi.hut.tml.xsmiles.mlfc.css
Class XSmilesCSSValueImpl

java.lang.Object
  extended bycom.steadystate.css.dom.CSSValueImpl
      extended byfi.hut.tml.xsmiles.mlfc.css.XSmilesCSSValueImpl
All Implemented Interfaces:
org.w3c.dom.css.CSSPrimitiveValue, org.w3c.dom.css.CSSValue, org.w3c.dom.css.CSSValueList, java.io.Serializable

public class XSmilesCSSValueImpl
extends com.steadystate.css.dom.CSSValueImpl
implements org.w3c.dom.css.CSSPrimitiveValue, org.w3c.dom.css.CSSValueList, java.io.Serializable

The CSSValueImpl class can represent either a CSSPrimitiveValue or a CSSValueList so that the type can successfully change when using setCssText. TO DO: Float unit conversions, A means of checking valid primitive types for properties

Version:
$Release$
Author:
David Schweinsberg
See Also:
Serialized Form

Field Summary
protected  int fontSize
           
 
Fields inherited from class com.steadystate.css.dom.CSSValueImpl
_value
 
Fields inherited from interface org.w3c.dom.css.CSSPrimitiveValue
CSS_ATTR, CSS_CM, CSS_COUNTER, CSS_DEG, CSS_DIMENSION, CSS_EMS, CSS_EXS, CSS_GRAD, CSS_HZ, CSS_IDENT, CSS_IN, CSS_KHZ, CSS_MM, CSS_MS, CSS_NUMBER, CSS_PC, CSS_PERCENTAGE, CSS_PT, CSS_PX, CSS_RAD, CSS_RECT, CSS_RGBCOLOR, CSS_S, CSS_STRING, CSS_UNKNOWN, CSS_URI
 
Fields inherited from interface org.w3c.dom.css.CSSValue
CSS_CUSTOM, CSS_INHERIT, CSS_PRIMITIVE_VALUE, CSS_VALUE_LIST
 
Constructor Summary
XSmilesCSSValueImpl(org.w3c.css.sac.LexicalUnit value)
           
XSmilesCSSValueImpl(org.w3c.css.sac.LexicalUnit value, boolean forcePrimitive)
          Constructor
 
Method Summary
protected  float conversionFactor(short unitType)
           
protected  com.steadystate.css.dom.CSSValueImpl createValueImpl(org.w3c.css.sac.LexicalUnit l, boolean forcePrimitive)
           
 float getFloatValue(short unitType)
           
 org.w3c.css.sac.LexicalUnit getLexicalUnit()
          returns the lexical unit value object, if accessible
 void setFontSize(int fs)
           
 
Methods inherited from class com.steadystate.css.dom.CSSValueImpl
getCounterValue, getCssText, getCssValueType, getLength, getPrimitiveType, getRectValue, getRGBColorValue, getStringValue, item, setCssText, setFloatValue, setStringValue, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.w3c.dom.css.CSSPrimitiveValue
getCounterValue, getPrimitiveType, getRectValue, getRGBColorValue, getStringValue, setFloatValue, setStringValue
 
Methods inherited from interface org.w3c.dom.css.CSSValue
getCssText, getCssValueType, setCssText
 
Methods inherited from interface org.w3c.dom.css.CSSValueList
getLength, item
 

Field Detail

fontSize

protected int fontSize
Constructor Detail

XSmilesCSSValueImpl

public XSmilesCSSValueImpl(org.w3c.css.sac.LexicalUnit value,
                           boolean forcePrimitive)
Constructor


XSmilesCSSValueImpl

public XSmilesCSSValueImpl(org.w3c.css.sac.LexicalUnit value)
Method Detail

createValueImpl

protected com.steadystate.css.dom.CSSValueImpl createValueImpl(org.w3c.css.sac.LexicalUnit l,
                                                               boolean forcePrimitive)

getLexicalUnit

public org.w3c.css.sac.LexicalUnit getLexicalUnit()
returns the lexical unit value object, if accessible


getFloatValue

public float getFloatValue(short unitType)
                    throws org.w3c.dom.DOMException
Specified by:
getFloatValue in interface org.w3c.dom.css.CSSPrimitiveValue
Throws:
org.w3c.dom.DOMException

setFontSize

public void setFontSize(int fs)

conversionFactor

protected float conversionFactor(short unitType)


X-Smiles 1.2