|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.batik.css.engine.value.AbstractValue
org.apache.batik.css.engine.value.ListValue
public class ListValue
This class represents a list of values.
| Field Summary | |
|---|---|
protected Value[] |
items
The items. |
protected int |
length
The length of the list. |
protected char |
separator
The list separator. |
| Constructor Summary | |
|---|---|
ListValue()
Creates a ListValue. |
|
ListValue(char s)
Creates a ListValue with the given separator. |
|
| Method Summary | |
|---|---|
void |
append(Value v)
Appends an item to the list. |
String |
getCssText()
A string representation of the current value. |
short |
getCssValueType()
Implements Value.getCssValueType(). |
int |
getLength()
Implements Value.getLength(). |
char |
getSeparatorChar()
Returns the separator used for this list. |
Value |
item(int index)
Implements Value.item(int). |
String |
toString()
Returns a printable representation of this value. |
| Methods inherited from class org.apache.batik.css.engine.value.AbstractValue |
|---|
createDOMException, getBlue, getBottom, getFloatValue, getGreen, getIdentifier, getLeft, getListStyle, getPrimitiveType, getRed, getRight, getSeparator, getStringValue, getTop |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected int length
protected Value[] items
protected char separator
| Constructor Detail |
|---|
public ListValue()
public ListValue(char s)
| Method Detail |
|---|
public char getSeparatorChar()
public short getCssValueType()
Value.getCssValueType().
getCssValueType in interface ValuegetCssValueType in class AbstractValuepublic String getCssText()
public int getLength()
throws DOMException
Value.getLength().
getLength in interface ValuegetLength in class AbstractValueDOMException - INVALID_ACCESS_ERR: Raised if the value doesn't contain a list
value.
public Value item(int index)
throws DOMException
Value.item(int).
item in interface Valueitem in class AbstractValueindex position in the
list, or null if that is not a valid index.
DOMException - INVALID_ACCESS_ERR: Raised if the value doesn't contain a list
value.public String toString()
toString in class Objectpublic void append(Value v)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||