public final class SelectItemsIterator<T extends javax.faces.model.SelectItem> extends Object implements Iterator<javax.faces.model.SelectItem>
Package private class for iterating over the set of SelectItem
s
for a parent UISelectMany
or UISelectOne
.
Constructor and Description |
---|
SelectItemsIterator(javax.faces.context.FacesContext ctx,
javax.faces.component.UIComponent parent)
Construct an iterator instance for the specified parent component.
|
Modifier and Type | Method and Description |
---|---|
javax.faces.component.UIComponent |
currentSelectComponent() |
boolean |
hasNext()
Return
true if the iteration has more elements. |
javax.faces.model.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(javax.faces.context.FacesContext ctx, javax.faces.component.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.
public javax.faces.model.SelectItem next()
Return the next element in the iteration.
next
in interface Iterator<javax.faces.model.SelectItem>
NoSuchElementException
- if there are no more elementspublic javax.faces.component.UIComponent currentSelectComponent()
Copyright © 2010–2021 JBoss by Red Hat. All rights reserved.