org.omnifaces.converter
Class ListIndexConverter
java.lang.Object
org.omnifaces.converter.ListIndexConverter
- All Implemented Interfaces:
- javax.faces.convert.Converter
public class ListIndexConverter
- extends java.lang.Object
- implements javax.faces.convert.Converter
The ListIndexConverter
automatically converts between the index of an object
and the object itself based on its position in a list that's provided to this converter.
This is a variant of the SelectItemsIndexConverter
. See its Javadoc for further documentation.
- Author:
- Arjan Tijms
Method Summary |
java.lang.Object |
getAsObject(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
java.lang.String value)
|
java.lang.String |
getAsString(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
java.lang.Object value)
|
void |
setList(java.util.List<?> list)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ListIndexConverter
public ListIndexConverter()
getAsObject
public java.lang.Object getAsObject(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
java.lang.String value)
- Specified by:
getAsObject
in interface javax.faces.convert.Converter
getAsString
public java.lang.String getAsString(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
java.lang.Object value)
- Specified by:
getAsString
in interface javax.faces.convert.Converter
setList
public void setList(java.util.List<?> list)