Package private class for iterating over the set of SelectItems for a parent
UISelectMany or UISelectOne.
| Modifier and Type | Class and Description |
|---|---|
| private static class | SelectItemsIterator.ArrayIterator
Handles arrays of |
| private abstract static class | SelectItemsIterator.GenericObjectSelectItemIterator
Base class to support iterating over Collections or Arrays that may or may not contain
|
| private static class | SelectItemsIterator.IterableItemIterator
Handles Collections of |
| private static class | SelectItemsIterator.MapIterator
Iterates over a |
| private static class | SelectItemsIterator.SingleElementIterator
Exposes single |
| Modifier and Type | Field and Description |
|---|---|
| private FacesContext | ctx
The |
| private Iterator | items
Iterator over the SelectItem elements pointed at by a |
| private ListIterator | kids
Iterator over the children of the parent component. |
| private SelectItemsIterator. | singleItemIterator
Expose single SelectItems via an Iterator. |
| Access | Constructor and Description |
|---|---|
| public | SelectItemsIterator(FacesContext
the ctx, UIComponent FacesContext for the current requestThe parent parent)UIComponent whose children will be processedConstruct an iterator instance for the specified parent component. |
| Modifier and Type | Method and Description |
|---|---|
| private Object | |
| public boolean | |
| private void | initializeItems(Object kid)
Initializes the |
| public SelectItem | |
| public void | |
| private void | updateSingeItemIterator(SelectItem
the item)SelectItem to expose as an IteratorUpdate the |
| ctx | back to summary |
|---|---|
| private FacesContext ctx The | |
| items | back to summary |
|---|---|
| private Iterator<SelectItem> items
Iterator over the SelectItem elements pointed at by a | |
| kids | back to summary |
|---|---|
| private ListIterator<UIComponent> kids Iterator over the children of the parent component. | |
| singleItemIterator | back to summary |
|---|---|
| private SelectItemsIterator. Expose single SelectItems via an Iterator. This iterator will be reset/reused for each individual SelectItem instance encountered. | |
| SelectItemsIterator | back to summary |
|---|---|
| public SelectItemsIterator(FacesContext ctx, UIComponent parent) Construct an iterator instance for the specified parent component.
| |
| findNextValidChild | back to summary |
|---|---|
private Object findNextValidChild()
| |
| hasNext | back to summary |
|---|---|
| public boolean hasNext() Implements java.
Return
| |
| initializeItems | back to summary |
|---|---|
| private void initializeItems(Object kid)
Initializes the | |
| next | back to summary |
|---|---|
| public SelectItem next() Implements java. Return the next element in the iteration.
| |
| remove | back to summary |
|---|---|
| public void remove() Overrides default java. Throw UnsupportedOperationException.
| |
| updateSingeItemIterator | back to summary |
|---|---|
| private void updateSingeItemIterator(SelectItem item) Update the
| |
SelectItems, generic Objects, or combintations of both.
A single GenericObjectSelectItem will be leverage for any
non-SelectItem objects encountered.
| Modifier and Type | Field and Description |
|---|---|
| private Object | |
| private int | |
| private FacesContext | |
| private int |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| public SelectItem | |
| public void | remove()
Overrides default java. |
| array | back to summary |
|---|---|
| private Object array | |
| count | back to summary |
|---|---|
| private int count | |
| ctx | back to summary |
|---|---|
| private FacesContext ctx | |
| index | back to summary |
|---|---|
| private int index | |
| ArrayIterator | back to summary |
|---|---|
| private ArrayIterator(FacesContext ctx, UISelectItems sourceComponent, Object array) | |
| hasNext | back to summary |
|---|---|
| public boolean hasNext() Implements java. Doc from java. Returns
| |
| next | back to summary |
|---|---|
| public SelectItem next() Implements java. Doc from java. Returns the next element in the iteration.
| |
| remove | back to summary |
|---|---|
| public void remove() Overrides default java. Doc from java. Removes from the underlying collection the last element returned
by this iterator (optional operation). This method can be called
only once per call to The behavior of an iterator is unspecified if the underlying collection is modified while the iteration is in progress in any way other than by calling this method, unless an overriding class has specified a concurrent modification policy.
The behavior of an iterator is unspecified if this method is called
after a call to the
| |
Base class to support iterating over Collections or Arrays that may or may not contain
SelectItem instances.
| Modifier and Type | Class and Description |
|---|---|
| private static class | SelectItemsIterator.GenericObjectSelectItemIterator.GenericObjectSelectItem
A |
| Modifier and Type | Field and Description |
|---|---|
| private SelectItemsIterator. | genericObjectSI
SelectItem that is updated based on the current Object being iterated over. |
| protected UISelectItems | sourceComponent
The source |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| protected SelectItem |
| genericObjectSI | back to summary |
|---|---|
| private SelectItemsIterator. SelectItem that is updated based on the current Object being iterated over. | |
| sourceComponent | back to summary |
|---|---|
| protected UISelectItems sourceComponent The source | |
| GenericObjectSelectItemIterator | back to summary |
|---|---|
| protected GenericObjectSelectItemIterator(UISelectItems sourceComponent) | |
| getSelectItemFor | back to summary |
|---|---|
| protected SelectItem getSelectItemFor(FacesContext ctx, Object value) | |
SelectItem implementation to support generating unique
SelectItem values based on ValueExpressions from the owning
UISelectItems instance.
| Modifier and Type | Field and Description |
|---|---|
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private ValueExpression | itemDescription
Resolves to the description of the |
| private ValueExpression | itemDisabled
Determines the value for the disabled property of the |
| private ValueExpression | itemEscaped
Determines the value for the escaped property of the |
| private ValueExpression | itemLabel
Resolves to the label of the |
| private ValueExpression | itemValue
Resolves to the value of the |
| private static final String | |
| private ValueExpression | noSelectionOption
Hides javax. SelectItem/
|
| private UISelectItems | |
| private static final String | |
| private String | var
The request-scoped variable under which the current object will be exposed. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| private void | updateItem(FacesContext
the ctx, Object FacesContext for the current requestthe value to build the updated values from value)Updates the |
| private void |
| ITEM_DESCRIPTION | back to summary |
|---|---|
| private static final String ITEM_DESCRIPTION | |
| ITEM_DISABLED | back to summary |
|---|---|
| private static final String ITEM_DISABLED | |
| ITEM_ESCAPED | back to summary |
|---|---|
| private static final String ITEM_ESCAPED | |
| ITEM_LABEL | back to summary |
|---|---|
| private static final String ITEM_LABEL | |
| ITEM_VALUE | back to summary |
|---|---|
| private static final String ITEM_VALUE | |
| itemDescription | back to summary |
|---|---|
| private ValueExpression itemDescription Resolves to the description of the | |
| itemDisabled | back to summary |
|---|---|
| private ValueExpression itemDisabled Determines the value for the disabled property of the | |
| itemEscaped | back to summary |
|---|---|
| private ValueExpression itemEscaped Determines the value for the escaped property of the | |
| itemLabel | back to summary |
|---|---|
| private ValueExpression itemLabel Resolves to the label of the | |
| itemValue | back to summary |
|---|---|
| private ValueExpression itemValue Resolves to the value of the | |
| NO_SELECTION_OPTION | back to summary |
|---|---|
| private static final String NO_SELECTION_OPTION | |
| noSelectionOption | back to summary |
|---|---|
| private ValueExpression noSelectionOption Hides javax. Determines the value for the noSelectionOption property of the
| |
| sourceComponent | back to summary |
|---|---|
| private UISelectItems sourceComponent | |
| VAR | back to summary |
|---|---|
| private static final String VAR | |
| var | back to summary |
|---|---|
| private String var The request-scoped variable under which the current object will be exposed. | |
| GenericObjectSelectItem | back to summary |
|---|---|
| private GenericObjectSelectItem(UISelectItems sourceComponent) | |
| readObject | back to summary |
|---|---|
| private void readObject(ObjectInputStream in) throws IOException | |
| updateItem | back to summary |
|---|---|
| private void updateItem(FacesContext ctx, Object value) Updates the
| |
| writeObject | back to summary |
|---|---|
| private void writeObject(ObjectOutputStream out) throws IOException | |
SelectItems, generic Objects, or combintations of both.
A single GenericObjectSelectItem will be leverage for any
non-SelectItem objects encountered.
| Modifier and Type | Field and Description |
|---|---|
| private FacesContext | |
| private Iterator |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| public SelectItem | |
| public void | remove()
Overrides default java. |
| ctx | back to summary |
|---|---|
| private FacesContext ctx | |
| iterator | back to summary |
|---|---|
| private Iterator<?> iterator | |
| IterableItemIterator | back to summary |
|---|---|
| private IterableItemIterator(FacesContext ctx, UISelectItems sourceComponent, Iterable<?> iterable) | |
| hasNext | back to summary |
|---|---|
| public boolean hasNext() Implements java. Doc from java. Returns
| |
| next | back to summary |
|---|---|
| public SelectItem next() Implements java. Doc from java. Returns the next element in the iteration.
| |
| remove | back to summary |
|---|---|
| public void remove() Overrides default java. Doc from java. Removes from the underlying collection the last element returned
by this iterator (optional operation). This method can be called
only once per call to The behavior of an iterator is unspecified if the underlying collection is modified while the iteration is in progress in any way other than by calling this method, unless an overriding class has specified a concurrent modification policy.
The behavior of an iterator is unspecified if this method is called
after a call to the
| |
Map of values exposing each entry as a SelectItem. Note that
this will do so re-using the same SelectItem but changing the value and label as appropriate.
| Modifier and Type | Field and Description |
|---|---|
| private SelectItem | |
| private Iterator |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| public SelectItem | |
| public void | remove()
Overrides default java. |
| item | back to summary |
|---|---|
| private SelectItem item | |
| iterator | back to summary |
|---|---|
| private Iterator<E> iterator | |
| MapIterator | back to summary |
|---|---|
| private MapIterator(Map<K, V> map) | |
| hasNext | back to summary |
|---|---|
| public boolean hasNext() Implements java. Doc from java. Returns
| |
| next | back to summary |
|---|---|
| public SelectItem next() Implements java. Doc from java. Returns the next element in the iteration.
| |
| remove | back to summary |
|---|---|
| public void remove() Overrides default java. Doc from java. Removes from the underlying collection the last element returned
by this iterator (optional operation). This method can be called
only once per call to The behavior of an iterator is unspecified if the underlying collection is modified while the iteration is in progress in any way other than by calling this method, unless an overriding class has specified a concurrent modification policy.
The behavior of an iterator is unspecified if this method is called
after a call to the
| |
SelectItem instances as an Iterator.
| Modifier and Type | Field and Description |
|---|---|
| private SelectItem | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| public SelectItem | |
| public void | remove()
Overrides default java. |
| private void |
| item | back to summary |
|---|---|
| private SelectItem item | |
| nextCalled | back to summary |
|---|---|
| private boolean nextCalled | |
| SingleElementIterator | back to summary |
|---|---|
| private SingleElementIterator() | |
| hasNext | back to summary |
|---|---|
| public boolean hasNext() Implements java. Doc from java. Returns
| |
| next | back to summary |
|---|---|
| public SelectItem next() Implements java. Doc from java. Returns the next element in the iteration.
| |
| remove | back to summary |
|---|---|
| public void remove() Overrides default java. Doc from java. Removes from the underlying collection the last element returned
by this iterator (optional operation). This method can be called
only once per call to The behavior of an iterator is unspecified if the underlying collection is modified while the iteration is in progress in any way other than by calling this method, unless an overriding class has specified a concurrent modification policy.
The behavior of an iterator is unspecified if this method is called
after a call to the
| |
| updateItem | back to summary |
|---|---|
| private void updateItem(SelectItem item) | |