ValidatedChoiceList
constructor(defaultValues: List<T>, choices: List<T>, handler: EntryHandler<T>, translationProvider: BiFunction<T, String, MutableText> = BiFunction { t, _ -> t.transLit(t.toString()) }, descriptionProvider: BiFunction<T, String, Text> = BiFunction { t, _ -> t.descLit("") }, widgetType: ValidatedChoiceList.WidgetType = WidgetType.POPUP)
Deprecated
Use toChoiceSet from ValidatedChoice/List/Set when possible
Parameters
T
the choice type
defaultValues
the choices that are "active" by default. Can be empty.
choices
List
handler
EntryHandler to provide validation tasks for individual choice elements
widgetType
WidgetType defines the GUI selection type. Defaults to POPUP