Package com.openhtmltopdf.css.parser
Class PropertyValue
java.lang.Object
com.openhtmltopdf.css.parser.PropertyValue
- All Implemented Interfaces:
CSSPrimitiveValue
,CSSValue
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate List
<CounterData> private final String
private final short
private float
private FSColor
private FSFunction
private IdentValue
private Token
private short
private String[]
private String
private final short
private List
<PropertyValue> static final short
static final short
static final short
static final short
static final short
static final short
static final short
static final short
Fields inherited from interface com.openhtmltopdf.css.parser.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_REMS, CSS_RGBCOLOR, CSS_S, CSS_STRING, CSS_UNKNOWN, CSS_URI
Fields inherited from interface com.openhtmltopdf.css.parser.CSSValue
CSS_CUSTOM, CSS_INHERIT, CSS_PRIMITIVE_VALUE, CSS_VALUE_LIST
-
Constructor Summary
ConstructorsConstructorDescriptionPropertyValue
(short type, float floatValue, String cssText) PropertyValue
(short type, String stringValue, String cssText) PropertyValue
(IdentValue ident) PropertyValue
(FSColor color) PropertyValue
(FSFunction function) PropertyValue
(List<CounterData> values, boolean unused) PropertyValue
(List<PropertyValue> values) -
Method Summary
Modifier and TypeMethodDescriptionshort
float
float
getFloatValue
(short unitType) short
short
String[]
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) toString()
-
Field Details
-
VALUE_TYPE_NUMBER
public static final short VALUE_TYPE_NUMBER- See Also:
-
VALUE_TYPE_LENGTH
public static final short VALUE_TYPE_LENGTH- See Also:
-
VALUE_TYPE_COLOR
public static final short VALUE_TYPE_COLOR- See Also:
-
VALUE_TYPE_IDENT
public static final short VALUE_TYPE_IDENT- See Also:
-
VALUE_TYPE_STRING
public static final short VALUE_TYPE_STRING- See Also:
-
VALUE_TYPE_LIST
public static final short VALUE_TYPE_LIST- See Also:
-
VALUE_TYPE_FUNCTION
public static final short VALUE_TYPE_FUNCTION- See Also:
-
VALUE_TYPE_COUNTERS
public static final short VALUE_TYPE_COUNTERS- See Also:
-
_type
private final short _type -
_cssValueType
private final short _cssValueType -
_stringValue
-
_floatValue
private float _floatValue -
_stringArrayValue
-
_cssText
-
_FSColor
-
_identValue
-
_propertyValueType
private short _propertyValueType -
_operator
-
_values
-
_counters
-
_function
-
-
Constructor Details
-
PropertyValue
-
PropertyValue
-
PropertyValue
-
PropertyValue
-
PropertyValue
-
PropertyValue
-
PropertyValue
-
-
Method Details
-
getFloatValue
- Specified by:
getFloatValue
in interfaceCSSPrimitiveValue
- Throws:
DOMException
-
getFloatValue
public float getFloatValue() -
getPrimitiveType
public short getPrimitiveType()- Specified by:
getPrimitiveType
in interfaceCSSPrimitiveValue
-
getStringValue
- Specified by:
getStringValue
in interfaceCSSPrimitiveValue
- Throws:
DOMException
-
setFloatValue
- Throws:
DOMException
-
setStringValue
- Throws:
DOMException
-
getCssText
- Specified by:
getCssText
in interfaceCSSValue
-
getCssValueType
public short getCssValueType()- Specified by:
getCssValueType
in interfaceCSSValue
-
setCssText
- Throws:
DOMException
-
getFSColor
-
getIdentValue
-
setIdentValue
-
getPropertyValueType
public short getPropertyValueType() -
getOperator
-
setOperator
-
getStringArrayValue
-
setStringArrayValue
-
toString
-
getValues
-
getCounters
-
getFunction
-
getFingerprint
-