Module io.sf.carte.css4j
Package io.sf.carte.doc.style.css
Interface ExtendedCSSValueList<E extends ExtendedCSSValue>
- Type Parameters:
E- the value type.
- All Superinterfaces:
Cloneable,CSSValue,CSSValueList,ExtendedCSSValue,Iterable<E>
- All Known Implementing Classes:
LinkedCSSValueList,ValueList
public interface ExtendedCSSValueList<E extends ExtendedCSSValue>
extends CSSValueList, ExtendedCSSValue, Iterable<E>
Augmented
CSSValueList interface.-
Field Summary
Fields inherited from interface org.w3c.dom.css.CSSValue
CSS_CUSTOM, CSS_INHERIT, CSS_PRIMITIVE_VALUE, CSS_VALUE_LIST -
Method Summary
Modifier and TypeMethodDescriptionbooleanAdds a value to the end of this list.voidclear()Removes all the items from this list.clone()Creates and returns a copy of this object.booleanisEmpty()Is this list empty ?item(int index) retrieve anExtendedCSSValueby ordinal index.remove(int index) Removes the value at the specified index.Replaces the value at the specified index with the supplied value.Methods inherited from interface org.w3c.dom.css.CSSValue
getCssText, getCssValueType, setCssTextMethods inherited from interface org.w3c.dom.css.CSSValueList
getLengthMethods inherited from interface io.sf.carte.doc.style.css.ExtendedCSSValue
getMinifiedCssText, writeCssTextMethods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
Method Details
-
add
Adds a value to the end of this list.- Parameters:
value- the value to be added.- Returns:
true(for consistency with Java collections).
-
clear
void clear()Removes all the items from this list. -
isEmpty
boolean isEmpty()Is this list empty ?- Returns:
trueif this list has no items,falseotherwise.
-
item
retrieve anExtendedCSSValueby ordinal index.- Specified by:
itemin interfaceCSSValueList- Parameters:
index- the index in this list.- Returns:
- the value at
index, ornullifindexis less than zero, or greater or equal to the list length.
-
remove
Removes the value at the specified index.- Parameters:
index- the index of the value to be removed.- Returns:
- the list item that was removed.
- Throws:
IndexOutOfBoundsException- if the index is invalid.
-
set
Replaces the value at the specified index with the supplied value.- Parameters:
index- the index of the value to be replaced.value- the value to replace the item atindex.- Returns:
- the item previously at the specified position.
- Throws:
IndexOutOfBoundsException- if the index is invalid.NullPointerException- if the value isnull.
-
clone
ExtendedCSSValueList<E> clone()Creates and returns a copy of this object.The list is cloned, but its contents are not.
- Specified by:
clonein interfaceExtendedCSSValue- Returns:
- a clone of this instance.
-