java.lang.Object
io.sf.carte.doc.style.css.om.StyleSheetList
- All Implemented Interfaces:
CSSStyleSheetList<AbstractCSSRule>,StyleSheetList
Abstract base implementation class for style sheet lists.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(AbstractCSSStyleSheet sheet) Add thesheetstyle sheet to this list.protected voidclear()intGets the preferred style sheet set as obtained from the sheets in the list.protected abstract booleanitem(int index) retrieve anExtendedCSSStyleSheetby ordinal index.protected Iterator<AbstractCSSStyleSheet>iterator()protected booleanvoidRemove the sheet with the giventitlefrom this list.booleanremove(StyleSheet sheet) Remove the given sheet from this list.protected voidsetNeedsUpdate(boolean needsUpdate) protected voidupdate()
-
Constructor Details
-
StyleSheetList
protected StyleSheetList(int initialCapacity)
-
-
Method Details
-
getLength
public int getLength()- Specified by:
getLengthin interfaceStyleSheetList
-
item
Description copied from interface:CSSStyleSheetListretrieve anExtendedCSSStyleSheetby ordinal index.- Specified by:
itemin interfaceCSSStyleSheetList<AbstractCSSRule>- Specified by:
itemin interfaceStyleSheetList- Parameters:
index- the index in this list.- Returns:
- the sheet at
index, ornullifindexis less than zero, or greater or equal to the list length.
-
getStyleSheetSets
-
add
Add thesheetstyle sheet to this list.- Parameters:
sheet- the style sheet.
-
getPreferredStyleSheetSet
Gets the preferred style sheet set as obtained from the sheets in the list.- Returns:
- the preferred style sheet set, or the empty string if none is preferred.
-
remove
Remove the sheet with the giventitlefrom this list.- Parameters:
title- the title of the sheet to remove.
-
remove
Remove the given sheet from this list.- Parameters:
sheet- the sheet to be removed.- Returns:
trueif this list containedsheet.
-
iterator
-
clear
protected void clear() -
needsUpdate
protected boolean needsUpdate() -
setNeedsUpdate
protected void setNeedsUpdate(boolean needsUpdate) -
update
protected void update() -
hasErrorsOrWarnings
protected abstract boolean hasErrorsOrWarnings()
-