public final class ValueConstants extends Object
CSSValue instances.| Constructor and Description |
|---|
ValueConstants() |
| Modifier and Type | Method and Description |
|---|---|
static String |
cssType(int cssType,
int primitiveValueType)
A text representation of the CSS type for this value.
|
static String |
getCssValueTypeDesc(org.w3c.dom.css.CSSValue cssValue)
Gets the cssValueTypeDesc attribute of the
CSSValue object |
static short |
guessType(String value)
Incomplete routine to try and determine the
CSSPrimitiveValue short code for a given value,
e.g.
|
static boolean |
isAbsoluteUnit(org.w3c.dom.css.CSSPrimitiveValue primitive)
Returns true if the specified value was absolute (even if we have a
computed value for it), meaning that either the value can be used
directly (e.g.
|
static boolean |
isAbsoluteUnit(short type)
Returns true if the specified type absolute (even if we have a computed
value for it), meaning that either the value can be used directly (e.g.
|
static boolean |
isNumber(short cssPrimitiveType)
Returns true if the SAC primitive value type is a number unit--a unit
that can only contain a numeric value.
|
static short |
sacPrimitiveTypeForString(String type)
Description of the Method
|
static String |
stringForSACPrimitiveType(short type)
Description of the Method
|
public static String cssType(int cssType, int primitiveValueType)
cssType - PARAMprimitiveValueType - PARAMpublic static short sacPrimitiveTypeForString(String type)
type - PARAMpublic static String stringForSACPrimitiveType(short type)
type - PARAMpublic static boolean isAbsoluteUnit(org.w3c.dom.css.CSSPrimitiveValue primitive)
primitive - The CSSValue instance to check.public static boolean isAbsoluteUnit(short type)
type - The CSSValue type to check.public static String getCssValueTypeDesc(org.w3c.dom.css.CSSValue cssValue)
CSSValue objectcssValue - PARAMpublic static boolean isNumber(short cssPrimitiveType)
cssPrimitiveType - PARAMpublic static short guessType(String value)
value - PARAMCopyright © 2015. All rights reserved.