Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
public interface CSSValue
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 |
|
static short |
|
static short |
|
static short |
|
Method Summary | |
String |
|
short |
|
void |
|
public static final short CSS_CUSTOM
The value is a custom value.
- Field Value:
- 3
public static final short CSS_INHERIT
The value is inherited and thecssText
contains "inherit".
- Field Value:
- 0
public static final short CSS_PRIMITIVE_VALUE
The value is a primitive value and an instance of theCSSPrimitiveValue
interface can be obtained by using binding-specific casting methods on this instance of theCSSValue
interface.
- Field Value:
- 1
public static final short CSS_VALUE_LIST
The value is aCSSValue
list and an instance of theCSSValueList
interface can be obtained by using binding-specific casting methods on this instance of theCSSValue
interface.
- Field Value:
- 2
public String getCssText()
A string representation of the current value.
public short getCssValueType()
A code defining the type of the value as defined above.
public void setCssText(String cssText) throws DOMException
A string representation of the current value.
- 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.