Package ch.tocco.nice2.model.form.impl
Class FormComponentDefaultValueResolverImpl
java.lang.Object
ch.tocco.nice2.model.form.impl.FormComponentDefaultValueResolverImpl
- All Implemented Interfaces:
FormComponentDefaultValueResolver
@Component
public class FormComponentDefaultValueResolverImpl
extends Object
implements FormComponentDefaultValueResolver
-
Nested Class Summary
Nested classes/interfaces inherited from interface ch.tocco.nice2.model.form.api.form2.FormComponentDefaultValueResolver
FormComponentDefaultValueResolver.RangeDefaultValue
-
Constructor Summary
ConstructorDescriptionFormComponentDefaultValueResolverImpl
(EntityDefaultValueService entityDefaultValueService, DefaultValueResolver resolver, Context context, DefaultDisplayService defaultDisplayService) -
Method Summary
Modifier and TypeMethodDescriptiongetDefaultFormValueFor
(Field component) Evaluates and returns the default value for the passed component.
-
Constructor Details
-
FormComponentDefaultValueResolverImpl
public FormComponentDefaultValueResolverImpl(EntityDefaultValueService entityDefaultValueService, DefaultValueResolver resolver, Context context, DefaultDisplayService defaultDisplayService)
-
-
Method Details
-
getDefaultFormValueFor
Description copied from interface:FormComponentDefaultValueResolver
Evaluates and returns the default value for the passed component. The default value can be set in the entity model and in the form model. - If the entity model and the form model have defined a default value for a certain field/relation, the default value from the form model will be returned.- Specified by:
getDefaultFormValueFor
in interfaceFormComponentDefaultValueResolver
-