Class ChoiceList
java.lang.Object
org.tailormap.api.persistence.json.ChoiceList
- All Implemented Interfaces:
Serializable
@Generated(value="org.openapitools.codegen.languages.SpringCodegen",
comments="Generator version: 7.27.0")
public class ChoiceList
extends Object
implements Serializable
The choices for a field with a select control. Only used when the control type of the form field is 'select'.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumWhere the choices come from: - list: the configured values - uniqueValues: the unique values of the attribute in the feature source -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddValuesItem(ChoiceListValue valuesItem) allowFreeInput(@Nullable Boolean allowFreeInput) booleanwhen true the user can also enter a value which is not one of the choices@NotNull ChoiceList.SourceEnumWhere the choices come from: - list: the configured values - uniqueValues: the unique values of the attribute in the feature sourceList<@Valid ChoiceListValue> The configured choices, in the order to show them.inthashCode()voidsetAllowFreeInput(Boolean allowFreeInput) voidsetSource(ChoiceList.SourceEnum source) voidsetValues(List<@Valid ChoiceListValue> values) source(ChoiceList.SourceEnum source) toString()values(@Nullable List<@Valid ChoiceListValue> values)
-
Constructor Details
-
ChoiceList
public ChoiceList()
-
-
Method Details
-
source
-
getSource
Where the choices come from: - list: the configured values - uniqueValues: the unique values of the attribute in the feature source- Returns:
- source
-
setSource
-
values
-
addValuesItem
-
getValues
The configured choices, in the order to show them. Used when source is 'list'. Kept but ignored for other sources, so they are not lost when the source is changed back.- Returns:
- values
-
setValues
-
allowFreeInput
-
getAllowFreeInput
when true the user can also enter a value which is not one of the choices- Returns:
- allowFreeInput
-
setAllowFreeInput
-
equals
-
hashCode
-
toString
-