Package com.sun.faces.renderkit
Class SelectItemsIterator<T extends SelectItem>
- java.lang.Object
-
- com.sun.faces.renderkit.SelectItemsIterator<T>
-
- All Implemented Interfaces:
Iterator<SelectItem>
public final class SelectItemsIterator<T extends SelectItem> extends Object implements Iterator<SelectItem>
Package private class for iterating over the set of
// RELEASE_PENDING (rlubke,driscoll) performanc reviewSelectItem
s for a parentUISelectMany
orUISelectOne
.
-
-
Constructor Summary
Constructors Constructor Description SelectItemsIterator(FacesContext ctx, UIComponent parent)
Construct an iterator instance for the specified parent component.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UIComponent
currentSelectComponent()
boolean
hasNext()
Returntrue
if the iteration has more elements.SelectItem
next()
Return the next element in the iteration.void
remove()
Throw UnsupportedOperationException.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Iterator
forEachRemaining
-
-
-
-
Constructor Detail
-
SelectItemsIterator
public SelectItemsIterator(FacesContext ctx, UIComponent parent)
Construct an iterator instance for the specified parent component.
- Parameters:
ctx
- theFacesContext
for the current requestparent
- The parentUIComponent
whose children will be processed
-
-
Method Detail
-
hasNext
public boolean hasNext()
Return
true
if the iteration has more elements.- Specified by:
hasNext
in interfaceIterator<T extends SelectItem>
-
next
public SelectItem next()
Return the next element in the iteration.
- Specified by:
next
in interfaceIterator<T extends SelectItem>
- Throws:
NoSuchElementException
- if there are no more elements
-
currentSelectComponent
public UIComponent currentSelectComponent()
-
remove
public void remove()
Throw UnsupportedOperationException.
- Specified by:
remove
in interfaceIterator<T extends SelectItem>
-
-