Class StyleIterator
- java.lang.Object
-
- org.eclipse.birt.report.model.api.css.StyleIterator
-
- All Implemented Interfaces:
java.util.Iterator
public class StyleIterator extends java.lang.Object implements java.util.Iterator
Iterates over the styles of an include style sheet.
-
-
Constructor Summary
Constructors Constructor Description StyleIterator(CssStyleSheetHandle styleSheet)
Constructs a iterator to return the styles of the given style sheet.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
hasNext()
Returns true if there is another style to retrieve.java.lang.Object
next()
Returns a handle of the style.void
remove()
Inherited method that is disabled in this iterator; the caller cannot remove styles using this class.
-
-
-
Constructor Detail
-
StyleIterator
public StyleIterator(CssStyleSheetHandle styleSheet)
Constructs a iterator to return the styles of the given style sheet.- Parameters:
styleSheet
- handle to the style sheet for which styles are included. Must not benull
.
-
-
Method Detail
-
remove
public void remove()
Inherited method that is disabled in this iterator; the caller cannot remove styles using this class.- Specified by:
remove
in interfacejava.util.Iterator
- See Also:
Iterator.remove()
-
hasNext
public boolean hasNext()
Returns true if there is another style to retrieve.- Specified by:
hasNext
in interfacejava.util.Iterator
- Returns:
- true if there is another style to retrieve, false otherwise
- See Also:
Iterator.hasNext()
-
next
public java.lang.Object next()
Returns a handle of the style.- Specified by:
next
in interfacejava.util.Iterator
- Returns:
- the handle of the style
- See Also:
Iterator.next()
,SharedStyleHandle
-
-