public abstract class StringTextChoiceProvider extends TextChoiceProvider<String>
TextChoiceProvider
for Strings.Constructor and Description |
---|
StringTextChoiceProvider() |
Modifier and Type | Method and Description |
---|---|
protected String |
getDisplayText(String choice) |
protected Object |
getId(String choice) |
Collection<String> |
toChoices(Collection<String> ids)
Converts a list of choice ids back into application's choice objects.
|
toJson
detach, query
protected String getDisplayText(String choice)
getDisplayText
in class TextChoiceProvider<String>
protected Object getId(String choice)
getId
in class TextChoiceProvider<String>
public Collection<String> toChoices(Collection<String> ids)
ChoiceProvider
ids
collection will contain exactly one id, and a collection containing
exactly one choice should be returned.toChoices
in class ChoiceProvider<String>
ids
- collection containing choice idsCopyright © 2015. All rights reserved.