public class PropertyValue extends Object implements org.w3c.dom.css.CSSPrimitiveValue
| 限定符和类型 | 字段和说明 |
|---|---|
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_URICSS_CUSTOM, CSS_INHERIT, CSS_PRIMITIVE_VALUE, CSS_VALUE_LIST| 构造器和说明 |
|---|
PropertyValue(FSColor color) |
PropertyValue(FSFunction function) |
PropertyValue(IdentValue ident) |
PropertyValue(List values) |
PropertyValue(short type,
float floatValue,
String cssText) |
PropertyValue(short type,
String stringValue,
String cssText) |
| 限定符和类型 | 方法和说明 |
|---|---|
org.w3c.dom.css.Counter |
getCounterValue() |
String |
getCssText() |
short |
getCssValueType() |
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() |
String[] |
getStringArrayValue() |
String |
getStringValue() |
List |
getValues() |
void |
setCssText(String cssText) |
void |
setFloatValue(short unitType,
float floatValue) |
void |
setIdentValue(IdentValue identValue) |
void |
setOperator(Token operator) |
void |
setStringArrayValue(String[] stringArrayValue) |
void |
setStringValue(short stringType,
String stringValue) |
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,
String cssText)
public PropertyValue(FSColor color)
public PropertyValue(IdentValue ident)
public PropertyValue(List values)
public PropertyValue(FSFunction function)
public org.w3c.dom.css.Counter getCounterValue() throws DOMException
getCounterValue 在接口中 org.w3c.dom.css.CSSPrimitiveValueDOMExceptionpublic float getFloatValue(short unitType)
throws DOMException
getFloatValue 在接口中 org.w3c.dom.css.CSSPrimitiveValueDOMExceptionpublic float getFloatValue()
public short getPrimitiveType()
getPrimitiveType 在接口中 org.w3c.dom.css.CSSPrimitiveValuepublic org.w3c.dom.css.RGBColor getRGBColorValue() throws DOMException
getRGBColorValue 在接口中 org.w3c.dom.css.CSSPrimitiveValueDOMExceptionpublic org.w3c.dom.css.Rect getRectValue() throws DOMException
getRectValue 在接口中 org.w3c.dom.css.CSSPrimitiveValueDOMExceptionpublic String getStringValue() throws DOMException
getStringValue 在接口中 org.w3c.dom.css.CSSPrimitiveValueDOMExceptionpublic void setFloatValue(short unitType,
float floatValue)
throws DOMException
setFloatValue 在接口中 org.w3c.dom.css.CSSPrimitiveValueDOMExceptionpublic void setStringValue(short stringType,
String stringValue)
throws DOMException
setStringValue 在接口中 org.w3c.dom.css.CSSPrimitiveValueDOMExceptionpublic String getCssText()
getCssText 在接口中 org.w3c.dom.css.CSSValuepublic short getCssValueType()
getCssValueType 在接口中 org.w3c.dom.css.CSSValuepublic void setCssText(String cssText) throws DOMException
setCssText 在接口中 org.w3c.dom.css.CSSValueDOMExceptionpublic FSColor getFSColor()
public IdentValue getIdentValue()
public void setIdentValue(IdentValue identValue)
public short getPropertyValueType()
public Token getOperator()
public void setOperator(Token operator)
public String[] getStringArrayValue()
public void setStringArrayValue(String[] stringArrayValue)
public List getValues()
public FSFunction getFunction()
public String getFingerprint()
Copyright © 2019. All Rights Reserved.