org.apache.batik.parser.style
Class CSSValueListValue
java.lang.Object
|
+--org.apache.batik.parser.style.AbstractCSSValue
|
+--org.apache.batik.parser.style.CSSValueListValue
- All Implemented Interfaces:
- CSSPrimitiveValue, CSSValue, CSSValueList
- public class CSSValueListValue
- extends AbstractCSSValue
This class represents CSS list of values
Field Summary |
protected int |
length
The list length. |
protected char |
separator
The separator character. |
protected CSSValue[] |
table
The table that contains the values. |
Fields inherited from interface org.w3c.dom.css.CSSPrimitiveValue |
CSS_ATTR, CSS_CM, CSS_COUNTER, CSS_DEG, CSS_DIMENSION, CSS_EMS, CSS_EXS, CSS_GRAD, CSS_HZ, CSS_IDENT, CSS_IN, CSS_KHZ, CSS_MM, CSS_MS, CSS_NUMBER, CSS_PC, CSS_PERCENTAGE, CSS_PT, CSS_PX, CSS_RAD, CSS_RECT, CSS_RGBCOLOR, CSS_S, CSS_STRING, CSS_UNKNOWN, CSS_URI |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
table
protected CSSValue[] table
- The table that contains the values.
length
protected int length
- The list length.
separator
protected char separator
- The separator character.
CSSValueListValue
public CSSValueListValue(char c)
- Creates a new list value.
- Parameters:
c
- The list separator.
getCssValueType
public short getCssValueType()
- DOM: Implements
CSSValue.getCssValueType()
.
getCssText
public java.lang.String getCssText()
- DOM: Implements
CSSValue.getCssText()
.- Following copied from interface:
org.w3c.dom.css.CSSValue
- 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.
getLength
public int getLength()
- DOM: Implements
CSSValueList.getLength()
.
- Overrides:
getLength
in class AbstractCSSValue
item
public CSSValue item(int index)
- DOM: Implements
CSSValueList.item(int)
.
- Overrides:
item
in class AbstractCSSValue
- Following copied from interface:
org.w3c.dom.css.CSSValueList
- Parameters:
index
- Index into the collection.- Returns:
- The
CSSValue
at the index
position
in the CSSValueList
, or null
if that is
not a valid index.
append
public void append(CSSValue item)
- Appends an item to the list.
Copyright © 2001 Apache Software Foundation. All Rights Reserved.