Class FormModelServiceImpl
java.lang.Object
ch.tocco.nice2.rest.form.impl.services.FormModelServiceImpl
- All Implemented Interfaces:
FormModelService
-
Constructor Summary
ConstructorsConstructorDescriptionFormModelServiceImpl
(L10N l10N, TextResources textResources, FormModel formModel) -
Method Summary
Modifier and TypeMethodDescriptiongetBoxLabel
(Component box) getDataType
(Component box) getDataType The method call .getLayoutType().getDefaultName() returns the Datatype.getDefiningModule
(EntityModel entityModel, String stringPath) getFieldLabels
(Component field) boolean
isFieldHidden
(Component field) boolean
isMandatory
(Field field) boolean
isReadonly
(Component field) parseScope
(String scopeName)
-
Constructor Details
-
FormModelServiceImpl
-
-
Method Details
-
parseScope
- Specified by:
parseScope
in interfaceFormModelService
-
getDefiningModule
- Specified by:
getDefiningModule
in interfaceFormModelService
-
getFormLabel
- Specified by:
getFormLabel
in interfaceFormModelService
-
getFieldLabels
- Specified by:
getFieldLabels
in interfaceFormModelService
-
getBoxLabel
- Specified by:
getBoxLabel
in interfaceFormModelService
-
isFieldHidden
- Specified by:
isFieldHidden
in interfaceFormModelService
-
isReadonly
- Specified by:
isReadonly
in interfaceFormModelService
-
isMandatory
- Specified by:
isMandatory
in interfaceFormModelService
-
getDataType
getDataType The method call .getLayoutType().getDefaultName() returns the Datatype. If the box parameter is not an instance of Form, it returns the ClassName of the instance as Fallback.- Specified by:
getDataType
in interfaceFormModelService
-