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 reviewSelectItems for a parentUISelectManyorUISelectOne.
-
-
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 UIComponentcurrentSelectComponent()booleanhasNext()Returntrueif the iteration has more elements.SelectItemnext()Return the next element in the iteration.voidremove()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- theFacesContextfor the current requestparent- The parentUIComponentwhose children will be processed
-
-
Method Detail
-
hasNext
public boolean hasNext()
Return
trueif the iteration has more elements.- Specified by:
hasNextin interfaceIterator<T extends SelectItem>
-
next
public SelectItem next()
Return the next element in the iteration.
- Specified by:
nextin interfaceIterator<T extends SelectItem>- Throws:
NoSuchElementException- if there are no more elements
-
currentSelectComponent
public UIComponent currentSelectComponent()
-
remove
public void remove()
Throw UnsupportedOperationException.
- Specified by:
removein interfaceIterator<T extends SelectItem>
-
-