This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.


org.w3c.dom.css
interface CSSValue

All Known Subinterfaces:
CSSPrimitiveValue, CSSValueList

public interface CSSValue

The CSSValue interface represents a simple or a complex value. A CSSValue object only occurs in a context of a CSS property.

See also the Document Object Model (DOM) Level 2 Style Specification.


Field Summary
static short CSS_CUSTOM
          The value is a custom value.
static short CSS_INHERIT
          The value is inherited and the cssText contains "inherit".
static short CSS_PRIMITIVE_VALUE
          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.
static short CSS_VALUE_LIST
          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.
 
Method Summary
 String

          A string representation of the current value.
 short

          A code defining the type of the value as defined above.
 void
setCssText(String cssText)

          A string representation of the current value.
 

Field Detail

CSS_CUSTOM

public static final short CSS_CUSTOM
The value is a custom value.

CSS_INHERIT

public static final short CSS_INHERIT
The value is inherited and the cssText contains "inherit".

CSS_PRIMITIVE_VALUE

public static final short CSS_PRIMITIVE_VALUE
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.

CSS_VALUE_LIST

public static final short CSS_VALUE_LIST
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.
Method Detail

getCssText

public String getCssText()
A string representation of the current value.


getCssValueType

public short getCssValueType()
A code defining the type of the value as defined above.


setCssText

public void setCssText(String cssText)
                throws DOMException
A string representation of the current value.

Parameters:
cssText
Throws:
DOMException - SYNTAX_ERR: Raised if the specified CSS string value has a syntax error (according to the attached property) or is unparsable.
INVALID_MODIFICATION_ERR: Raised if the specified CSS string value represents a different type of values than the values allowed by the CSS property.
NO_MODIFICATION_ALLOWED_ERR: Raised if this value is readonly.


This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.
This page displays the Jadeite version of the documention, which is derived from the offical documentation that contains this copyright notice:
Copyright 2008 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.
The official Sun™ documentation can be found here at http://java.sun.com/javase/6/docs/api/.