org.vectomatic.dom.svg
Class OMCSSValueList

java.lang.Object
  extended by org.vectomatic.dom.svg.OMCSSValue
      extended by org.vectomatic.dom.svg.OMCSSValueList

public class OMCSSValueList
extends OMCSSValue

Class for a CSS value list

Author:
laaglu

Field Summary
protected  OMCSSValue[] items
           
 
Fields inherited from class org.vectomatic.dom.svg.OMCSSValue
CSS_CUSTOM, CSS_INHERIT, CSS_PRIMITIVE_VALUE, CSS_VALUE_LIST, cssText, cssValueType
 
Constructor Summary
OMCSSValueList(OMCSSValue[] items, String cssText)
          Constructor
 
Method Summary
 String getDescription()
           
 OMCSSValue getItem(int index)
          Used to retrieve an OMCSSValue by ordinal index.
 int getLength()
          Returns the number of CSSValues in the list.
 
Methods inherited from class org.vectomatic.dom.svg.OMCSSValue
getCssText, getCssValueType, setCssText, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

items

protected OMCSSValue[] items
Constructor Detail

OMCSSValueList

public OMCSSValueList(OMCSSValue[] items,
                      String cssText)
Constructor

Parameters:
items - The items in the value list
Method Detail

getLength

public int getLength()
Returns the number of CSSValues in the list. The range of valid values of the indices is 0 to length-1 inclusive.

Returns:
The number of CSSValues in the list.

getItem

public OMCSSValue getItem(int index)
Used to retrieve an OMCSSValue by ordinal index. The order in this collection represents the order of the values in the CSS style property. If index is greater than or equal to the number of values in the list, this returns null.

Parameters:
index - Index into the collection.
Returns:
an OMCSSValue

getDescription

public String getDescription()
Specified by:
getDescription in class OMCSSValue


Copyright © 2012. All Rights Reserved.