Class EnumToSelectBoxConverter
java.lang.Object
ch.tocco.nice2.model.form.spi.converter.AbstractFieldComponentConverter<SingleSelectBox>
ch.tocco.nice2.model.form.impl.entity.EnumToSelectBoxConverter
- All Implemented Interfaces:
FieldComponentConverter
The enum datatype is rendered as select box by default.
TODO no default value shall be selected. add a fake empty element? if radios were used instead then this problem would not exist, but the list can get long...
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected Class
<? extends SingleSelectBox> protected Class
<SingleSelectBox> Methods inherited from class ch.tocco.nice2.model.form.spi.converter.AbstractFieldComponentConverter
convert, mapFields
-
Constructor Details
-
EnumToSelectBoxConverter
public EnumToSelectBoxConverter()
-
-
Method Details
-
getImplClass
- Specified by:
getImplClass
in classAbstractFieldComponentConverter<SingleSelectBox>
-
getInterfaceClass
- Specified by:
getInterfaceClass
in classAbstractFieldComponentConverter<SingleSelectBox>
-