Class FormItemTypeManagementService

    • Constructor Detail

      • FormItemTypeManagementService

        public FormItemTypeManagementService()
    • Method Detail

      • setActualType

        public void setActualType​(FormField field,
                                  AbstractDataPath path,
                                  FormItemContainer context,
                                  Form form,
                                  Version version)
        Changes the FormField type with the default if necessary or remains unchanged otherwise.
        Specified by:
        setActualType in interface IFormItemTypeManagementService
        Parameters:
        field - the form field in which the compatible type will be set, cannot be null
        path - the path participates at a choice of compatible type, can be null
        context - the parental object in which there is a current field, can be null
        form - the form in which there are all objects, cannot be null
        version - the configuration version, cannot be null
      • setDefaultType

        public void setDefaultType​(FormField field,
                                   AbstractDataPath path,
                                   Form form,
                                   Version version)
        Sets the default type for the FormField.
        Specified by:
        setDefaultType in interface IFormItemTypeManagementService
        Parameters:
        field - the form field in which the default type will be set, cannot be null
        path - the path participates at a choice of default type, can be null
        form - the form in which there are all objects, can be null
        version - the configuration version, cannot be null
      • setType

        public void setType​(ManagedFormFieldType type,
                            FormField field,
                            AbstractDataPath path,
                            FormItemContainer context,
                            Form form,
                            Version version)
        Sets a type for the FormField.
        Specified by:
        setType in interface IFormItemTypeManagementService
        Parameters:
        type - the type which will be set, cannot be null
        field - the form field in which the type will be set, cannot be null
        path - the path participates at a choice of compatible type, can be null
        context - the parental object in which there is a current field, can be null
        form - the form in which there are all objects, cannot be null
        version - the configuration version, cannot be null
      • setActualType

        public void setActualType​(Button button,
                                  FormItemContainer context)
        Sets the compatible type for the Button.
        Specified by:
        setActualType in interface IFormItemTypeManagementService
        Parameters:
        button - the form button in which the type will be set, cannot be null
        context - the parental object in which there is a current button, can be null
      • setActualType

        public void setActualType​(FormGroup group,
                                  FormItemContainer context,
                                  Version version)
        Sets the compatible type for the FormGroup.
        Specified by:
        setActualType in interface IFormItemTypeManagementService
        Parameters:
        group - the form group in which the type will be set, cannot be null
        context - the parental object in which there is a current group, can be null
        version - the configuration version, cannot be null
      • setActualType

        public void setActualType​(Addition addition,
                                  FormItemContainer context,
                                  Version version)
        Sets the compatible type for the Addition.
        Specified by:
        setActualType in interface IFormItemTypeManagementService
        Parameters:
        addition - the form addition in which the type will be set, cannot be null
        context - the parental object in which there is a current addition, can be null
        version - the configuration version, cannot be null
      • setActualType

        public void setActualType​(Decoration decoration,
                                  FormItemContainer context,
                                  Version version)
        Sets the compatible type for the Decoration.
        Specified by:
        setActualType in interface IFormItemTypeManagementService
        Parameters:
        decoration - the form decoration in which the type will be set, cannot be null
        context - the parental object in which there is a current decoration, can be null
        version - the configuration version, cannot be null
      • setActualType

        public void setActualType​(Table table,
                                  AbstractDataPath path,
                                  FormItemContainer context,
                                  Form form,
                                  Version version)
        Sets the compatible type for the Table.
        Specified by:
        setActualType in interface IFormItemTypeManagementService
        Parameters:
        table - the form table in which the type will be set, cannot be null
        path - the path participates at a choice of compatible type.
        context - the parental object in which there is a current table, can be null
        form - the form in which there are all objects, cannot be null
        version - the configuration version, cannot be null