java.lang.Object
ch.tocco.nice2.rest.form.impl.beans.factories.componentmappers.BaseComponentMapper<I,O>
ch.tocco.nice2.rest.form.impl.beans.factories.componentmappers.FieldMapper<I,O>
- All Implemented Interfaces:
ComponentMapper<I,
O>
- Direct Known Subclasses:
CodeFieldMapper
,FulltextSearchMapper
,HtmlFieldMapper
,RangeFieldMapper
,RemoteFieldComponentMapper
,SelectBoxComponentMapper
@Component
public class FieldMapper<I extends Field,O extends FieldBean>
extends BaseComponentMapper<I,O>
-
Field Summary
Fields inherited from class ch.tocco.nice2.rest.form.impl.beans.factories.componentmappers.BaseComponentMapper
textResources
-
Constructor Summary
ConstructorDescriptionFieldMapper
(TextResources textResources, FormComponentDefaultValueResolver formComponentDefaultValueResolver, EntityModelService entityModelService) -
Method Summary
Modifier and TypeMethodDescriptionShould be overridden in subclasses.protected String
map
(I component, Component.Configuration configuration)
-
Field Details
-
formComponentDefaultValueResolver
-
-
Constructor Details
-
FieldMapper
public FieldMapper(TextResources textResources, FormComponentDefaultValueResolver formComponentDefaultValueResolver, EntityModelService entityModelService)
-
-
Method Details
-
map
-
getComponentType
- Overrides:
getComponentType
in classBaseComponentMapper<I extends Field,
O extends FieldBean>
-
getBeanClass
Description copied from class:BaseComponentMapper
Should be overridden in subclasses.- Overrides:
getBeanClass
in classBaseComponentMapper<I extends Field,
O extends FieldBean> - Returns:
- the class of the bean the mapper returns.
-
getComponentClass
- Specified by:
getComponentClass
in interfaceComponentMapper<I extends Field,
O extends FieldBean> - Overrides:
getComponentClass
in classBaseComponentMapper<I extends Field,
O extends FieldBean>
-