public final class SelectItemsIterator<T extends javax.faces.model.SelectItem>
extends java.lang.Object
implements java.util.Iterator<javax.faces.model.SelectItem>
Package private class for iterating over the set of SelectItems
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.
|
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.
hasNext in interface java.util.Iterator<javax.faces.model.SelectItem>public javax.faces.model.SelectItem next()
Return the next element in the iteration.
next in interface java.util.Iterator<javax.faces.model.SelectItem>java.util.NoSuchElementException - if there are no more elementspublic javax.faces.component.UIComponent currentSelectComponent()
public void remove()
Throw UnsupportedOperationException.
remove in interface java.util.Iterator<javax.faces.model.SelectItem>Copyright 2017 ICEsoft Technologies Canada Corp., All Rights Reserved.