Class FormItemTypeManagementService

    • Constructor Detail

      • FormItemTypeManagementService

        public FormItemTypeManagementService()
    • Method Detail

      • setActualType

        public void setActualType​(FormField field,
                                  AbstractDataPath path,
                                  FormItemContainer context,
                                  Form form,
                                  Version version)
        Method sets suitable type for FormField according to the parameters. If the form field has suitable type that not of that doesn't change.
        Specified by:
        setActualType in interface IFormItemTypeManagementService
        Parameters:
        field - the form field in which the suitable type will be sets. (The field can not be null).
        path - the path participates at a choice of suitable type. Current path has to be actual for form. The path can be null.
        context - the parental object in which there is a current field. (The null context value is valid). If current context does not support a FormField then throws IllegalArgumentException.
        form - the form in which there are all objects.
        version - the configuration version.
      • setDefaultType

        public void setDefaultType​(FormField field,
                                   Version version)
        Method sets default type for current form field. If the form field has default type the type does not change.
        Specified by:
        setDefaultType in interface IFormItemTypeManagementService
        Parameters:
        field - the form field in which the suitable type will be sets. (The field can not be null)
        version - the configuration version.
      • setType

        public void setType​(ManagedFormFieldType type,
                            FormField field,
                            AbstractDataPath path,
                            FormItemContainer context,
                            Form form,
                            Version version)
        Method sets a type for form field. Throws IllegalArgumentException, if the type isn't suitable for the corresponding parameters.
        Specified by:
        setType in interface IFormItemTypeManagementService
        Parameters:
        type - the type which will be set. The null value is not support.
        field - the form field in which the type will be sets. (The field can not be null).
        path - the path participates at a choice of suitable type. Current path has to be actual for form. The path can be null.
        context - the parental object in which there is a current field. (The null context value is valid). If current context does not support a FormField then throws IllegalArgumentException.
        form - the form in which there are all objects.
        version - the configuration version.
      • setActualType

        public void setActualType​(Button button,
                                  FormItemContainer context)
        Method sets suitable type for Button according to the parameters. If the form button has default type the type does not change.
        Specified by:
        setActualType in interface IFormItemTypeManagementService
        Parameters:
        button - the form button in which the type will be sets. (The button can not be null).
        context - the parental object in which there is a current button. (The null context value is valid). If current context does not support a Button then throws IllegalArgumentException.
      • setType

        public void setType​(ManagedFormGroupType type,
                            FormGroup group,
                            FormItemContainer context,
                            Version version)
        Method sets suitable type for FormGroup according to the parameters. If the form group has default type the type does not change.
        Specified by:
        setType in interface IFormItemTypeManagementService
        Parameters:
        type - the type which will be set. The null value is not support.
        group - the form group in which the type will be sets. (The group can not be null).
        context - the parental object in which there is a current group. (The null context value is valid). If current context does not support a FormGroup then throws IllegalArgumentException.
        version - the configuration version.
      • setType

        public void setType​(ManagedFormAdditionType type,
                            Addition addition,
                            FormItemContainer context,
                            Version version)
        Method sets suitable type for Addition according to the parameters. If the form addition has default type the type does not change.
        Specified by:
        setType in interface IFormItemTypeManagementService
        Parameters:
        type - the type which will be set. The null value is not support.
        addition - the form addition in which the type will be sets. (The addition can not be null).
        context - the parental object in which there is a current addition. (The null context value is valid). If current context does not support a Addition then throws IllegalArgumentException.
        version - the configuration version.
      • setType

        public void setType​(ManagedFormDecorationType type,
                            Decoration decoration,
                            FormItemContainer context,
                            Version version)
        Method sets suitable type for Decoration according to the parameters. If the form decoration has default type the type does not change.
        Specified by:
        setType in interface IFormItemTypeManagementService
        Parameters:
        type - the type which will be set. The null value is not support.
        decoration - the form decoration in which the type will be sets. (The decoration can not be null).
        context - the parental object in which there is a current decoration. (The null context value is valid). If current context does not support a Decoration then throws IllegalArgumentException.
        version - the configuration version.
      • setActualType

        public void setActualType​(Table table,
                                  AbstractDataPath path,
                                  FormItemContainer context,
                                  Form form,
                                  Version version)
        Method sets suitable type for Table according to the parameters.
        Specified by:
        setActualType in interface IFormItemTypeManagementService
        Parameters:
        table - the form table in which the type will be sets. (The table can not be null).
        path - the path participates at a choice of suitable type. Current path has to be actual for form. The path can be null.
        context - the parental object in which there is a current table. (The null context value is valid). If current context does not support a Table then throws IllegalArgumentException.
        form - the form in which there are all objects.
        version - the configuration version.