public final class SelectItemsIterator<T extends SelectItem> extends Object implements Iterator<SelectItem>
Package private class for iterating over the set of SelectItem
s
for a parent UISelectMany
or UISelectOne
.
Constructor and Description |
---|
SelectItemsIterator(FacesContext ctx,
UIComponent parent)
Construct an iterator instance for the specified parent component.
|
Modifier and Type | Method and Description |
---|---|
UIComponent |
currentSelectComponent() |
boolean |
hasNext()
Return
true if the iteration has more elements. |
SelectItem |
next()
Return the next element in the iteration.
|
void |
remove()
Throw UnsupportedOperationException.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining
public SelectItemsIterator(FacesContext ctx, UIComponent parent)
Construct an iterator instance for the specified parent component.
ctx
- the FacesContext
for the current requestparent
- The parent UIComponent
whose children will be
processedpublic boolean hasNext()
Return true
if the iteration has more elements.
hasNext
in interface Iterator<SelectItem>
public SelectItem next()
Return the next element in the iteration.
next
in interface Iterator<SelectItem>
NoSuchElementException
- if there are no more elementspublic UIComponent currentSelectComponent()
public void remove()
Throw UnsupportedOperationException.
remove
in interface Iterator<SelectItem>
Comments to: faces-dev@eclipse.org.
Copyright © 2019 Eclipse Foundation. All rights reserved.
Use is subject to license terms.