E
- the FieldChoiceDefinitionpublic class SimpleFieldChoiceDefinition<E extends FieldChoiceDefinition<E>> extends FieldChoiceDefinition<E>
Constructor and Description |
---|
SimpleFieldChoiceDefinition(int storagesize)
Creates a blank SimpleFieldChoiceDefinition
|
SimpleFieldChoiceDefinition(int storagesize,
NamedList<ChoiceValue<E>> choices)
Creates a SimpleFieldChoiceDefinition with the provided values
|
Modifier and Type | Method and Description |
---|---|
ChoiceValue<E> |
parseValueFromStorageCode(java.lang.String valueasstored) |
addChoiceValue, addChoiceValueasDefault, decode, getChoiceValue, getDefaultChoice, getStorageSize, lookUpByDisplayValue, parseChoiceValue, parseMultipleChoiceElt, setDefaultAsNull, setDefaultChoice, showDisplay, toString
public SimpleFieldChoiceDefinition(int storagesize)
storagesize
- the storage size of the code for one valuepublic SimpleFieldChoiceDefinition(int storagesize, NamedList<ChoiceValue<E>> choices)
storagesize
- the storage size of the code for one valuechoices
- the list of possible choicespublic ChoiceValue<E> parseValueFromStorageCode(java.lang.String valueasstored)
valueasstored
- the code of one value