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 TypeMethodDescriptionboolean
Adds a value to the end of this list.void
clear()
Removes all the items from this list.clone()
Creates and returns a copy of this object.boolean
isEmpty()
Is this list empty ?item
(int index) retrieve anExtendedCSSValue
by 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, setCssText
Methods inherited from interface org.w3c.dom.css.CSSValueList
getLength
Methods inherited from interface io.sf.carte.doc.style.css.ExtendedCSSValue
getMinifiedCssText, writeCssText
Methods 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:
true
if this list has no items,false
otherwise.
-
item
retrieve anExtendedCSSValue
by ordinal index.- Specified by:
item
in interfaceCSSValueList
- Parameters:
index
- the index in this list.- Returns:
- the value at
index
, ornull
ifindex
is 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:
clone
in interfaceExtendedCSSValue
- Returns:
- a clone of this instance.
-