public class CSSPrimitiveValue extends CSSValue
CSSPrimitiveValue.| Modifier and Type | Field and Description |
|---|---|
static short |
CSS_ATTR
The value is a attribute function.
|
static short |
CSS_CM
The value is a length (cm).
|
static short |
CSS_COUNTER
The value is a counter or counters function.
|
static short |
CSS_DEG
The value is an angle (deg).
|
static short |
CSS_DIMENSION
The value is a number with an unknown dimension.
|
static short |
CSS_EMS
The value is a length (ems).
|
static short |
CSS_EXS
The value is a length (exs).
|
static short |
CSS_GRAD
The value is an angle (grad).
|
static short |
CSS_HZ
The value is a frequency (Hz).
|
static short |
CSS_IDENT
The value is an identifier.
|
static short |
CSS_IN
The value is a length (in).
|
static short |
CSS_KHZ
The value is a frequency (kHz).
|
static short |
CSS_MM
The value is a length (mm).
|
static short |
CSS_MS
The value is a time (ms).
|
static short |
CSS_NUMBER
The value is a simple number.
|
static short |
CSS_PC
The value is a length (pc).
|
static short |
CSS_PERCENTAGE
The value is a percentage.
|
static short |
CSS_PT
The value is a length (pt).
|
static short |
CSS_PX
The value is a length (px).
|
static short |
CSS_RAD
The value is an angle (rad).
|
static short |
CSS_RECT
The value is a rect function.
|
static short |
CSS_RGBCOLOR
The value is a RGB color.
|
static short |
CSS_S
The value is a time (s).
|
static short |
CSS_STRING
The value is a STRING.
|
static short |
CSS_UNKNOWN
The value is not a recognized CSS2 value.
|
static short |
CSS_URI
The value is a URI.
|
CSS_CUSTOM, CSS_INHERIT, CSS_PRIMITIVE_VALUE, CSS_VALUE_LIST| Constructor and Description |
|---|
CSSPrimitiveValue()
Creates an instance.
|
| Modifier and Type | Method and Description |
|---|---|
double |
getFloatValue(int unitType)
Gets the float value in the specified unit.
|
getCssTextclone, equivalentValues, get, getBrowserVersion, getDefaultValue, getDomNodeOrDie, getDomNodeOrNull, getPrototype, getScriptableFor, getStartingScope, getWindow, getWindow, getWithPreemption, has, hasInstance, initParentScope, makeScriptableFor, setCaseSensitive, setDomNode, setDomNode, setHtmlElementdefineFunctionProperties, defineProperty, getClassName, put, setClassName, setParentScopeapplyDescriptorToAttributeBitset, associateValue, avoidObjectDetection, buildDataDescriptor, callMethod, callMethod, checkPropertyChange, checkPropertyDefinition, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineOwnProperties, defineOwnProperty, defineOwnProperty, defineProperty, defineProperty, defineProperty, defineProperty, delete, delete, delete, deleteProperty, deleteProperty, ensureScriptable, ensureScriptableObject, ensureSymbolScriptable, get, get, get, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getExternalArrayData, getExternalArrayLength, getFunctionPrototype, getGetterOrSetter, getIds, getObjectPrototype, getOwnPropertyDescriptor, getParentScope, getProperty, getProperty, getProperty, getPropertyIds, getPrototype, getSlot, getTopLevelScope, getTopScopeValue, getTypedProperty, getTypedProperty, getTypeOf, has, has, hasProperty, hasProperty, hasProperty, isAccessorDescriptor, isConst, isDataDescriptor, isEmpty, isExtensible, isFalse, isGenericDescriptor, isGetterOrSetter, isReadOnlySettable, isSealed, isTrue, preventExtensions, put, put, putConst, putConstProperty, putProperty, putProperty, putProperty, redefineProperty, sameValue, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setAttributes, setExternalArrayData, setGetterOrSetter, setPrototype, sizepublic static final short CSS_UNKNOWN
cssText attribute.public static final short CSS_NUMBER
getFloatValue method.public static final short CSS_PERCENTAGE
getFloatValue method.public static final short CSS_EMS
getFloatValue method.public static final short CSS_EXS
getFloatValue method.public static final short CSS_PX
getFloatValue method.public static final short CSS_CM
getFloatValue method.public static final short CSS_MM
getFloatValue method.public static final short CSS_IN
getFloatValue method.public static final short CSS_PT
getFloatValue method.public static final short CSS_PC
getFloatValue method.public static final short CSS_DEG
getFloatValue method.public static final short CSS_RAD
getFloatValue method.public static final short CSS_GRAD
getFloatValue method.public static final short CSS_MS
getFloatValue method.public static final short CSS_S
getFloatValue method.public static final short CSS_HZ
getFloatValue method.public static final short CSS_KHZ
getFloatValue method.public static final short CSS_DIMENSION
getFloatValue method.public static final short CSS_STRING
getStringValue method.public static final short CSS_URI
getStringValue method.public static final short CSS_IDENT
getStringValue method.public static final short CSS_ATTR
getStringValue method.public static final short CSS_COUNTER
getCounterValue method.public static final short CSS_RECT
getRectValue method.public static final short CSS_RGBCOLOR
getRGBColorValue method.Copyright © 2002–2020 Gargoyle Software Inc.. All rights reserved.