com.gargoylesoftware.htmlunit.javascript.host.css
Class CSSPrimitiveValue

java.lang.Object
  extended by net.sourceforge.htmlunit.corejs.javascript.ScriptableObject
      extended by com.gargoylesoftware.htmlunit.javascript.SimpleScriptable
          extended by com.gargoylesoftware.htmlunit.javascript.host.css.CSSValue
              extended by com.gargoylesoftware.htmlunit.javascript.host.css.CSSPrimitiveValue
All Implemented Interfaces:
Serializable, Cloneable, Map, net.sourceforge.htmlunit.corejs.javascript.ConstProperties, net.sourceforge.htmlunit.corejs.javascript.debug.DebuggableObject, net.sourceforge.htmlunit.corejs.javascript.Scriptable

public class CSSPrimitiveValue
extends CSSValue

A JavaScript object for a CSSPrimitiveValue.

Version:
$Revision: 5301 $
Author:
Marc Guillemot
See Also:
CSSPrimitiveValue, Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
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 jsxFunction_getFloatValue(int unitType)
          Gets the float value in the specified unit.
 
Methods inherited from class com.gargoylesoftware.htmlunit.javascript.host.css.CSSValue
jsxGet_cssText
 
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, makeScriptableFor, setCaseSensitive, setDomNode, setDomNode, setHtmlElement
 
Methods inherited from class net.sourceforge.htmlunit.corejs.javascript.ScriptableObject
applyDescriptorToAttributeBitset, associateValue, avoidObjectDetection, buildDataDescriptor, callMethod, callMethod, clear, containsKey, containsValue, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineOwnProperties, defineOwnProperty, defineProperty, defineProperty, defineProperty, delete, delete, deleteProperty, deleteProperty, ensureScriptable, ensureScriptableObject, entrySet, get, get, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getFunctionPrototype, getGetterOrSetter, getIds, getObjectPrototype, getOwnPropertyDescriptor, getParentScope, getProperty, getProperty, getPropertyIds, getPrototype, getSlot, getTopLevelScope, getTopScopeValue, getTypeOf, has, has, hasProperty, hasProperty, isAccessorDescriptor, isConst, isDataDescriptor, isEmpty, isExtensible, isFalse, isGenericDescriptor, isGetterOrSetter, isSealed, isTrue, keySet, preventExtensions, put, put, put, putAll, putConst, putConstProperty, putProperty, putProperty, redefineProperty, remove, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setGetterOrSetter, setParentScope, setPrototype, size, values
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Field Detail

CSS_UNKNOWN

public static final short CSS_UNKNOWN
The value is not a recognized CSS2 value. The value can only be obtained by using the cssText attribute.

See Also:
Constant Field Values

CSS_NUMBER

public static final short CSS_NUMBER
The value is a simple number. The value can be obtained by using the getFloatValue method.

See Also:
Constant Field Values

CSS_PERCENTAGE

public static final short CSS_PERCENTAGE
The value is a percentage. The value can be obtained by using the getFloatValue method.

See Also:
Constant Field Values

CSS_EMS

public static final short CSS_EMS
The value is a length (ems). The value can be obtained by using the getFloatValue method.

See Also:
Constant Field Values

CSS_EXS

public static final short CSS_EXS
The value is a length (exs). The value can be obtained by using the getFloatValue method.

See Also:
Constant Field Values

CSS_PX

public static final short CSS_PX
The value is a length (px). The value can be obtained by using the getFloatValue method.

See Also:
Constant Field Values

CSS_CM

public static final short CSS_CM
The value is a length (cm). The value can be obtained by using the getFloatValue method.

See Also:
Constant Field Values

CSS_MM

public static final short CSS_MM
The value is a length (mm). The value can be obtained by using the getFloatValue method.

See Also:
Constant Field Values

CSS_IN

public static final short CSS_IN
The value is a length (in). The value can be obtained by using the getFloatValue method.

See Also:
Constant Field Values

CSS_PT

public static final short CSS_PT
The value is a length (pt). The value can be obtained by using the getFloatValue method.

See Also:
Constant Field Values

CSS_PC

public static final short CSS_PC
The value is a length (pc). The value can be obtained by using the getFloatValue method.

See Also:
Constant Field Values

CSS_DEG

public static final short CSS_DEG
The value is an angle (deg). The value can be obtained by using the getFloatValue method.

See Also:
Constant Field Values

CSS_RAD

public static final short CSS_RAD
The value is an angle (rad). The value can be obtained by using the getFloatValue method.

See Also:
Constant Field Values

CSS_GRAD

public static final short CSS_GRAD
The value is an angle (grad). The value can be obtained by using the getFloatValue method.

See Also:
Constant Field Values

CSS_MS

public static final short CSS_MS
The value is a time (ms). The value can be obtained by using the getFloatValue method.

See Also:
Constant Field Values

CSS_S

public static final short CSS_S
The value is a time (s). The value can be obtained by using the getFloatValue method.

See Also:
Constant Field Values

CSS_HZ

public static final short CSS_HZ
The value is a frequency (Hz). The value can be obtained by using the getFloatValue method.

See Also:
Constant Field Values

CSS_KHZ

public static final short CSS_KHZ
The value is a frequency (kHz). The value can be obtained by using the getFloatValue method.

See Also:
Constant Field Values

CSS_DIMENSION

public static final short CSS_DIMENSION
The value is a number with an unknown dimension. The value can be obtained by using the getFloatValue method.

See Also:
Constant Field Values

CSS_STRING

public static final short CSS_STRING
The value is a STRING. The value can be obtained by using the getStringValue method.

See Also:
Constant Field Values

CSS_URI

public static final short CSS_URI
The value is a URI. The value can be obtained by using the getStringValue method.

See Also:
Constant Field Values

CSS_IDENT

public static final short CSS_IDENT
The value is an identifier. The value can be obtained by using the getStringValue method.

See Also:
Constant Field Values

CSS_ATTR

public static final short CSS_ATTR
The value is a attribute function. The value can be obtained by using the getStringValue method.

See Also:
Constant Field Values

CSS_COUNTER

public static final short CSS_COUNTER
The value is a counter or counters function. The value can be obtained by using the getCounterValue method.

See Also:
Constant Field Values

CSS_RECT

public static final short CSS_RECT
The value is a rect function. The value can be obtained by using the getRectValue method.

See Also:
Constant Field Values

CSS_RGBCOLOR

public static final short CSS_RGBCOLOR
The value is a RGB color. The value can be obtained by using the getRGBColorValue method.

See Also:
Constant Field Values
Constructor Detail

CSSPrimitiveValue

public CSSPrimitiveValue()
Creates an instance. JavaScript objects must have a default constructor to instantiate prototype.

Method Detail

jsxFunction_getFloatValue

public double jsxFunction_getFloatValue(int unitType)
Gets the float value in the specified unit.

Parameters:
unitType - the type of unit
Returns:
the value


Copyright © 2002-2011 Gargoyle Software Inc.. All Rights Reserved.