public class PropertyValue
extends java.lang.Object
implements org.w3c.dom.css.CSSPrimitiveValue
Modifier and Type | Field and Description |
---|---|
static short |
VALUE_TYPE_COLOR |
static short |
VALUE_TYPE_FUNCTION |
static short |
VALUE_TYPE_IDENT |
static short |
VALUE_TYPE_LENGTH |
static short |
VALUE_TYPE_LIST |
static short |
VALUE_TYPE_NUMBER |
static short |
VALUE_TYPE_STRING |
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
Constructor and Description |
---|
PropertyValue(FSColor color) |
PropertyValue(FSFunction function) |
PropertyValue(IdentValue ident) |
PropertyValue(java.util.List values) |
PropertyValue(short type,
float floatValue,
java.lang.String cssText) |
PropertyValue(short type,
java.lang.String stringValue,
java.lang.String cssText) |
Modifier and Type | Method and Description |
---|---|
org.w3c.dom.css.Counter |
getCounterValue() |
java.lang.String |
getCssText() |
short |
getCssValueType() |
java.lang.String |
getFingerprint() |
float |
getFloatValue() |
float |
getFloatValue(short unitType) |
FSColor |
getFSColor() |
FSFunction |
getFunction() |
IdentValue |
getIdentValue() |
Token |
getOperator() |
short |
getPrimitiveType() |
short |
getPropertyValueType() |
org.w3c.dom.css.Rect |
getRectValue() |
org.w3c.dom.css.RGBColor |
getRGBColorValue() |
java.lang.String[] |
getStringArrayValue() |
java.lang.String |
getStringValue() |
java.util.List |
getValues() |
void |
setCssText(java.lang.String cssText) |
void |
setFloatValue(short unitType,
float floatValue) |
void |
setIdentValue(IdentValue identValue) |
void |
setOperator(Token operator) |
void |
setStringArrayValue(java.lang.String[] stringArrayValue) |
void |
setStringValue(short stringType,
java.lang.String stringValue) |
java.lang.String |
toString() |
public static final short VALUE_TYPE_NUMBER
public static final short VALUE_TYPE_LENGTH
public static final short VALUE_TYPE_COLOR
public static final short VALUE_TYPE_IDENT
public static final short VALUE_TYPE_STRING
public static final short VALUE_TYPE_LIST
public static final short VALUE_TYPE_FUNCTION
public PropertyValue(short type, float floatValue, java.lang.String cssText)
public PropertyValue(FSColor color)
public PropertyValue(short type, java.lang.String stringValue, java.lang.String cssText)
public PropertyValue(IdentValue ident)
public PropertyValue(java.util.List values)
public PropertyValue(FSFunction function)
public org.w3c.dom.css.Counter getCounterValue() throws org.w3c.dom.DOMException
getCounterValue
in interface org.w3c.dom.css.CSSPrimitiveValue
org.w3c.dom.DOMException
public float getFloatValue(short unitType) throws org.w3c.dom.DOMException
getFloatValue
in interface org.w3c.dom.css.CSSPrimitiveValue
org.w3c.dom.DOMException
public float getFloatValue()
public short getPrimitiveType()
getPrimitiveType
in interface org.w3c.dom.css.CSSPrimitiveValue
public org.w3c.dom.css.RGBColor getRGBColorValue() throws org.w3c.dom.DOMException
getRGBColorValue
in interface org.w3c.dom.css.CSSPrimitiveValue
org.w3c.dom.DOMException
public org.w3c.dom.css.Rect getRectValue() throws org.w3c.dom.DOMException
getRectValue
in interface org.w3c.dom.css.CSSPrimitiveValue
org.w3c.dom.DOMException
public java.lang.String getStringValue() throws org.w3c.dom.DOMException
getStringValue
in interface org.w3c.dom.css.CSSPrimitiveValue
org.w3c.dom.DOMException
public void setFloatValue(short unitType, float floatValue) throws org.w3c.dom.DOMException
setFloatValue
in interface org.w3c.dom.css.CSSPrimitiveValue
org.w3c.dom.DOMException
public void setStringValue(short stringType, java.lang.String stringValue) throws org.w3c.dom.DOMException
setStringValue
in interface org.w3c.dom.css.CSSPrimitiveValue
org.w3c.dom.DOMException
public java.lang.String getCssText()
getCssText
in interface org.w3c.dom.css.CSSValue
public short getCssValueType()
getCssValueType
in interface org.w3c.dom.css.CSSValue
public void setCssText(java.lang.String cssText) throws org.w3c.dom.DOMException
setCssText
in interface org.w3c.dom.css.CSSValue
org.w3c.dom.DOMException
public FSColor getFSColor()
public IdentValue getIdentValue()
public void setIdentValue(IdentValue identValue)
public short getPropertyValueType()
public Token getOperator()
public void setOperator(Token operator)
public java.lang.String[] getStringArrayValue()
public void setStringArrayValue(java.lang.String[] stringArrayValue)
public java.lang.String toString()
toString
in class java.lang.Object
public java.util.List getValues()
public FSFunction getFunction()
public java.lang.String getFingerprint()