|
Flying Saucer Project Release ${app.version} | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.xhtmlrenderer.css.constants.ValueConstants
public final class ValueConstants
Utility class for working with CSSValue
instances.
Constructor Summary | |
---|---|
ValueConstants()
|
Method Summary | |
---|---|
static java.lang.String |
cssType(int cssType,
int primitiveValueType)
A text representation of the CSS type for this value. |
static java.lang.String |
getCssValueTypeDesc(org.w3c.dom.css.CSSValue cssValue)
Gets the cssValueTypeDesc attribute of the CSSValue object |
static short |
guessType(java.lang.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(java.lang.String type)
Description of the Method |
static java.lang.String |
stringForSACPrimitiveType(short type)
Description of the Method |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ValueConstants()
Method Detail |
---|
public static java.lang.String cssType(int cssType, int primitiveValueType)
cssType
- PARAMprimitiveValueType
- PARAM
public static short sacPrimitiveTypeForString(java.lang.String type)
type
- PARAM
public static java.lang.String stringForSACPrimitiveType(short type)
type
- PARAM
public 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 java.lang.String getCssValueTypeDesc(org.w3c.dom.css.CSSValue cssValue)
CSSValue
object
cssValue
- PARAM
public static boolean isNumber(short cssPrimitiveType)
cssPrimitiveType
- PARAM
public static short guessType(java.lang.String value)
value
- PARAM
|
Flying Saucer Project Release ${app.version} | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |