|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.htmlunit.corejs.javascript.ScriptableObject
com.gargoylesoftware.htmlunit.javascript.SimpleScriptable
com.gargoylesoftware.htmlunit.javascript.host.css.CSSValue
com.gargoylesoftware.htmlunit.javascript.host.css.CSSPrimitiveValue
public class CSSPrimitiveValue
A JavaScript object for a CSSPrimitiveValue.
CSSPrimitiveValue,
Serialized Form| Field Summary | |
|---|---|
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. |
| Fields inherited from class com.gargoylesoftware.htmlunit.javascript.host.css.CSSValue |
|---|
CSS_CUSTOM, CSS_INHERIT, CSS_PRIMITIVE_VALUE, CSS_VALUE_LIST |
| Fields inherited from class net.sourceforge.htmlunit.corejs.javascript.ScriptableObject |
|---|
CONST, DONTENUM, EMPTY, PERMANENT, READONLY, UNINITIALIZED_CONST |
| Fields inherited from interface net.sourceforge.htmlunit.corejs.javascript.Scriptable |
|---|
NOT_FOUND |
| Constructor Summary | |
|---|---|
CSSPrimitiveValue()
Creates an instance. |
|
| Method Summary | |
|---|---|
double |
getFloatValue(int unitType)
Gets the float value in the specified unit. |
| Methods inherited from class com.gargoylesoftware.htmlunit.javascript.host.css.CSSValue |
|---|
getCssText |
| Methods inherited from class com.gargoylesoftware.htmlunit.javascript.SimpleScriptable |
|---|
clone, defineFunctionProperties, defineProperty, equivalentValues, get, getBrowserVersion, getClassName, getDefaultValue, getDomNodeOrDie, getDomNodeOrNull, getPrototype, getScriptableFor, getStartingScope, getTransformerScriptableFor, getWindow, getWindow, getWithPreemption, hasInstance, initParentScope, isReadOnlySettable, makeScriptableFor, setCaseSensitive, setDomNode, setDomNode, setHtmlElement |
| Methods inherited from class net.sourceforge.htmlunit.corejs.javascript.ScriptableObject |
|---|
applyDescriptorToAttributeBitset, associateValue, avoidObjectDetection, buildDataDescriptor, callMethod, callMethod, checkPropertyChange, checkPropertyDefinition, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineOwnProperties, defineOwnProperty, defineOwnProperty, defineProperty, defineProperty, defineProperty, delete, delete, deleteProperty, deleteProperty, ensureScriptable, ensureScriptableObject, get, get, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getFunctionPrototype, getGetterOrSetter, getIds, getObjectPrototype, getOwnPropertyDescriptor, getParentScope, getProperty, getProperty, getPropertyIds, getPrototype, getSlot, getTopLevelScope, getTopScopeValue, getTypedProperty, getTypedProperty, getTypeOf, has, has, hasProperty, hasProperty, isAccessorDescriptor, isConst, isDataDescriptor, isEmpty, isExtensible, isFalse, isGenericDescriptor, isGetterOrSetter, isSealed, isTrue, preventExtensions, put, put, putConst, putConstProperty, putProperty, putProperty, redefineProperty, sameValue, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setGetterOrSetter, setParentScope, setPrototype, size |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public 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.
| Constructor Detail |
|---|
public CSSPrimitiveValue()
| Method Detail |
|---|
public double getFloatValue(int unitType)
unitType - the type of unit
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||