T- The model object type
public interface IChoiceRenderer<T> extends IClusterable
|Modifier and Type||Method and Description|
Get the value for displaying to an end user.
This method is called to get the id value of an object (used as the value attribute of a choice element) The id can be extracted from the object like a primary key, or if the list is stable you could just return a toString of the index.
This method is called to get an object back from its id representation.
object- the actual object
Note that the given index can be
-1 if the object in question is not contained in the
object- The object for which the id should be generated
index- The index of the object in the choices list.
idmay be used to find/load the object in a more efficient way than loading all
choicesand find the one with the same id in the list
id- The id representation of the object
choices- The list of all rendered choices
Copyright © 2006–2019 Apache Software Foundation. All rights reserved.