API Overview API Index Package Overview Direct link to this page
JDK 1.6
  org.w3c.dom.css. CSSPrimitiveValue View Source
Author(s)
Since
DOM Level 2
Version
Serial
Hierarchy
 CSSValue
      CSSPrimitiveValue
Subinterfaces
Description
public interface CSSPrimitiveValue
  The CSSPrimitiveValue interface represents a single CSS value .
See also:   
Methods
Hide/Show inherited methods
public Counter getCounterValue () throws DOMException
  This method is used to get the Counter value.
public float getFloatValue (short unitType) throws DOMException
  This method is used to get a float value in a specified unit.
public short getPrimitiveType ()
The type of the value as defined by the constants specified above.
public Rect getRectValue () throws DOMException
  This method is used to get the Rect value.
public RGBColor getRGBColorValue () throws DOMException
  This method is used to get the RGB color.
public String getStringValue () throws DOMException
  This method is used to get the string value.
public void setFloatValue (short unitType, float floatValue) throws DOMException
  A method to set the float value with a specified unit.
public void setStringValue (short stringType, String stringValue) throws DOMException
  A method to set the string value with the specified unit.
Fields
Hide/Show inherited fields
publicfinalstatic short CSS_ATTR = "22"
  The value is a attribute function.
publicfinalstatic short CSS_CM = "6"
  The value is a length (cm).
publicfinalstatic short CSS_COUNTER = "23"
  The value is a counter or counters function.
publicfinalstatic short CSS_CUSTOM = "3" [Inherited From CSSValue]
The value is a custom value.
publicfinalstatic short CSS_DEG = "11"
  The value is an angle (deg).
publicfinalstatic short CSS_DIMENSION = "18"
  The value is a number with an unknown dimension.
publicfinalstatic short CSS_EMS = "3"
  The value is a length (ems).
publicfinalstatic short CSS_EXS = "4"
  The value is a length (exs).
publicfinalstatic short CSS_GRAD = "13"
  The value is an angle (grad).
publicfinalstatic short CSS_HZ = "16"
  The value is a frequency (Hz).
publicfinalstatic short CSS_IDENT = "21"
  The value is an identifier.
publicfinalstatic short CSS_IN = "8"
  The value is a length (in).
publicfinalstatic short CSS_INHERIT = "0" [Inherited From CSSValue]
The value is inherited and the cssText contains "inherit".
publicfinalstatic short CSS_KHZ = "17"
  The value is a frequency (kHz).
publicfinalstatic short CSS_MM = "7"
  The value is a length (mm).
publicfinalstatic short CSS_MS = "14"
  The value is a time (ms).
publicfinalstatic short CSS_NUMBER = "1"
  The value is a simple number.
publicfinalstatic short CSS_PC = "10"
  The value is a length (pc).
publicfinalstatic short CSS_PERCENTAGE = "2"
  The value is a percentage.
publicfinalstatic short CSS_PRIMITIVE_VALUE = "1" [Inherited From CSSValue]
The value is a primitive value and an instance of the CSSPrimitiveValue interface can be obtained by using binding-specific casting methods on this instance of the CSSValue interface.
publicfinalstatic short CSS_PT = "9"
  The value is a length (pt).
publicfinalstatic short CSS_PX = "5"
  The value is a length (px).
publicfinalstatic short CSS_RAD = "12"
  The value is an angle (rad).
publicfinalstatic short CSS_RECT = "24"
  The value is a rect function.
publicfinalstatic short CSS_RGBCOLOR = "25"
  The value is a RGB color.
publicfinalstatic short CSS_S = "15"
  The value is a time (s).
publicfinalstatic short CSS_STRING = "19"
  The value is a STRING.
publicfinalstatic short CSS_UNKNOWN = "0"
  The value is not a recognized CSS2 value.
publicfinalstatic short CSS_URI = "20"
  The value is a URI.
publicfinalstatic short CSS_VALUE_LIST = "2" [Inherited From CSSValue]
The value is a CSSValue list and an instance of the CSSValueList interface can be obtained by using binding-specific casting methods on this instance of the CSSValue interface.
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar