|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
T - The model object typepublic interface IChoiceRenderer<T>
Renders one choice. Separates the 'id' values used for internal representation from 'display values' which are the values shown to the user of components that use this renderer.
| Method Summary | |
|---|---|
Object |
getDisplayValue(T object)
Get the value for displaying to an end user. |
String |
getIdValue(T object,
int index)
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. |
| Method Detail |
|---|
Object getDisplayValue(T object)
object - the actual object
String getIdValue(T object,
int index)
Note that the given index can be -1 if the object in question is not contained in the
available choices.
object - The object for which the id should be generatedindex - The index of the object in the choices list.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||