Interface IFormItemTypeManagementService

    • Method Detail

      • setActualType

        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.
        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

        void setDefaultType​(FormField field,
                            AbstractDataPath path,
                            Form form,
                            Version version)
        Sets the default type for the FormField.
        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

        void setType​(ManagedFormFieldType type,
                     FormField field,
                     AbstractDataPath path,
                     FormItemContainer context,
                     Form form,
                     Version version)
        Sets a type for the FormField.
        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
        Throws:
        IllegalArgumentException - if the context does not support field.
      • setActualType

        void setActualType​(Table table,
                           AbstractDataPath path,
                           FormItemContainer context,
                           Form form,
                           Version version)
        Sets the compatible type for the Table.
        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
        Throws:
        IllegalArgumentException - if the context does not support table.
      • setActualType

        void setActualType​(Button button,
                           FormItemContainer context)
        Sets the compatible type for the Button.
        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
        Throws:
        IllegalArgumentException - if the context does not support button.
      • setType

        void setType​(ManagedFormButtonType type,
                     Button button,
                     FormItemContainer context)
        Sets a type for the Button.
        Parameters:
        type - the type which will be set, cannot be null
        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
        Throws:
        IllegalArgumentException - if the context does not support button.
      • setActualType

        void setActualType​(FormGroup group,
                           FormItemContainer context,
                           Version version)
        Sets the compatible type for the FormGroup.
        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
        Throws:
        IllegalArgumentException - if the context does not support group.
      • setType

        void setType​(ManagedFormGroupType type,
                     FormGroup group,
                     FormItemContainer context,
                     Version version)
        Sets a type for the FormGroup.
        Parameters:
        type - the type which will be set, cannot be null
        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
        Throws:
        IllegalArgumentException - if the context does not support group.
      • setActualType

        void setActualType​(Addition addition,
                           FormItemContainer context,
                           Version version)
        Sets the compatible type for the Addition.
        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
        Throws:
        IllegalArgumentException - if the context does not support addition.
      • setType

        void setType​(ManagedFormAdditionType type,
                     Addition addition,
                     FormItemContainer context,
                     Version version)
        Sets a type for the Addition.
        Parameters:
        type - the type which will be set, cannot be null
        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
        Throws:
        IllegalArgumentException - if the context does not support addition.
      • setActualType

        void setActualType​(Decoration decoration,
                           FormItemContainer context,
                           Version version)
        Sets the compatible type for the Decoration.
        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
        Throws:
        IllegalArgumentException - if the context does not support decoration.
      • setType

        void setType​(ManagedFormDecorationType type,
                     Decoration decoration,
                     FormItemContainer context,
                     Version version)
        Sets a type for the Decoration.
        Parameters:
        type - the type which will be set, cannot be null
        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
        Throws:
        IllegalArgumentException - if the context does not support decoration.