Class FormItemTypeManagementService
- java.lang.Object
-
- com._1c.g5.v8.dt.form.service.item.impl.FormItemTypeManagementService
-
- All Implemented Interfaces:
IFormItemTypeManagementService
public class FormItemTypeManagementService extends Object implements IFormItemTypeManagementService
The default implementation ofIFormItemTypeManagementService
. As types ofFormItem
are strongly connected with aExtInfo
, this service delegate changes the ext info toIExtInfoManagementService
.
-
-
Constructor Summary
Constructors Constructor Description FormItemTypeManagementService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
setActualType(Addition addition, FormItemContainer context, Version version)
Method sets suitable type forAddition
according to the parameters.void
setActualType(Button button, FormItemContainer context)
Method sets suitable type forButton
according to the parameters.void
setActualType(Decoration decoration, FormItemContainer context, Version version)
Method sets suitable type forDecoration
according to the parameters.void
setActualType(FormField field, AbstractDataPath path, FormItemContainer context, Form form, Version version)
Method sets suitable type forFormField
according to the parameters.void
setActualType(FormGroup group, FormItemContainer context, Version version)
Method sets suitable type forFormGroup
according to the parameters.void
setActualType(Table table, AbstractDataPath path, FormItemContainer context, Form form, Version version)
Method sets suitable type forTable
according to the parameters.void
setDefaultType(FormField field, Version version)
Method sets default type for current form field.void
setType(ManagedFormAdditionType type, Addition addition, FormItemContainer context, Version version)
Method sets suitable type forAddition
according to the parameters.void
setType(ManagedFormButtonType type, Button button, FormItemContainer context)
Method sets a type for form button.void
setType(ManagedFormDecorationType type, Decoration decoration, FormItemContainer context, Version version)
Method sets suitable type forDecoration
according to the parameters.void
setType(ManagedFormFieldType type, FormField field, AbstractDataPath path, FormItemContainer context, Form form, Version version)
Method sets a type for form field.void
setType(ManagedFormGroupType type, FormGroup group, FormItemContainer context, Version version)
Method sets suitable type forFormGroup
according to the parameters.
-
-
-
Method Detail
-
setActualType
public void setActualType(FormField field, AbstractDataPath path, FormItemContainer context, Form form, Version version)
Method sets suitable type forFormField
according to the parameters. If the form field has suitable type that not of that doesn't change.- Specified by:
setActualType
in interfaceIFormItemTypeManagementService
- Parameters:
field
- the form field in which the suitable type will be sets. (The field can not benull
).path
- the path participates at a choice of suitable type. Current path has to be actual forform
. The path can benull
.context
- the parental object in which there is a currentfield
. (Thenull
context value is valid). If current context does not support aFormField
then throwsIllegalArgumentException
.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 interfaceIFormItemTypeManagementService
- Parameters:
field
- the form field in which the suitable type will be sets. (The field can not benull
)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. ThrowsIllegalArgumentException
, if the type isn't suitable for the corresponding parameters.- Specified by:
setType
in interfaceIFormItemTypeManagementService
- Parameters:
type
- the type which will be set. Thenull
value is not support.field
- the form field in which the type will be sets. (The field can not benull
).path
- the path participates at a choice of suitable type. Current path has to be actual forform
. The path can benull
.context
- the parental object in which there is a currentfield
. (Thenull
context value is valid). If current context does not support aFormField
then throwsIllegalArgumentException
.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 forButton
according to the parameters. If the form button has default type the type does not change.- Specified by:
setActualType
in interfaceIFormItemTypeManagementService
- Parameters:
button
- the form button in which the type will be sets. (The button can not benull
).context
- the parental object in which there is a currentbutton
. (Thenull
context value is valid). If current context does not support aButton
then throwsIllegalArgumentException
.
-
setType
public void setType(ManagedFormButtonType type, Button button, FormItemContainer context)
Method sets a type for form button. ThrowsIllegalArgumentException
, if the type isn't suitable for the corresponding parameters.- Specified by:
setType
in interfaceIFormItemTypeManagementService
- Parameters:
type
- the type which will be set. Thenull
value is not support.button
- the form button in which the type will be sets. (The button can not benull
).context
- the parental object in which there is a currentbutton
. (Thenull
context value is valid). If current context does not support aButton
then throwsIllegalArgumentException
.
-
setActualType
public void setActualType(FormGroup group, FormItemContainer context, Version version)
Method sets suitable type forFormGroup
according to the parameters. ThrowsIllegalArgumentException
, if the type isn't suitable for the corresponding parameters.- Specified by:
setActualType
in interfaceIFormItemTypeManagementService
- Parameters:
group
- the form group in which the type will be sets. (The group can not benull
).context
- the parental object in which there is a currentgroup
. (Thenull
context value is valid). If current context does not support aFormGroup
then throwsIllegalArgumentException
.version
- the configuration version.
-
setType
public void setType(ManagedFormGroupType type, FormGroup group, FormItemContainer context, Version version)
Method sets suitable type forFormGroup
according to the parameters. If the form group has default type the type does not change.- Specified by:
setType
in interfaceIFormItemTypeManagementService
- Parameters:
type
- the type which will be set. Thenull
value is not support.group
- the form group in which the type will be sets. (The group can not benull
).context
- the parental object in which there is a currentgroup
. (Thenull
context value is valid). If current context does not support aFormGroup
then throwsIllegalArgumentException
.version
- the configuration version.
-
setActualType
public void setActualType(Addition addition, FormItemContainer context, Version version)
Method sets suitable type forAddition
according to the parameters. ThrowsIllegalArgumentException
, if the type isn't suitable for the corresponding parameters.- Specified by:
setActualType
in interfaceIFormItemTypeManagementService
- Parameters:
addition
- the form addition in which the type will be sets. (The addition can not benull
).context
- the parental object in which there is a currentaddition
. (Thenull
context value is valid). If current context does not support aAddition
then throwsIllegalArgumentException
.version
- the configuration version.
-
setType
public void setType(ManagedFormAdditionType type, Addition addition, FormItemContainer context, Version version)
Method sets suitable type forAddition
according to the parameters. If the form addition has default type the type does not change.- Specified by:
setType
in interfaceIFormItemTypeManagementService
- Parameters:
type
- the type which will be set. Thenull
value is not support.addition
- the form addition in which the type will be sets. (The addition can not benull
).context
- the parental object in which there is a currentaddition
. (Thenull
context value is valid). If current context does not support aAddition
then throwsIllegalArgumentException
.version
- the configuration version.
-
setActualType
public void setActualType(Decoration decoration, FormItemContainer context, Version version)
Method sets suitable type forDecoration
according to the parameters. ThrowsIllegalArgumentException
, if the type isn't suitable for the corresponding parameters.- Specified by:
setActualType
in interfaceIFormItemTypeManagementService
- Parameters:
decoration
- the form decoration in which the type will be sets. (The decoration can not benull
).context
- the parental object in which there is a currentdecoration
. (Thenull
context value is valid). If current context does not support aDecoration
then throwsIllegalArgumentException
.version
- the configuration version.
-
setType
public void setType(ManagedFormDecorationType type, Decoration decoration, FormItemContainer context, Version version)
Method sets suitable type forDecoration
according to the parameters. If the form decoration has default type the type does not change.- Specified by:
setType
in interfaceIFormItemTypeManagementService
- Parameters:
type
- the type which will be set. Thenull
value is not support.decoration
- the form decoration in which the type will be sets. (The decoration can not benull
).context
- the parental object in which there is a currentdecoration
. (Thenull
context value is valid). If current context does not support aDecoration
then throwsIllegalArgumentException
.version
- the configuration version.
-
setActualType
public void setActualType(Table table, AbstractDataPath path, FormItemContainer context, Form form, Version version)
Method sets suitable type forTable
according to the parameters.- Specified by:
setActualType
in interfaceIFormItemTypeManagementService
- Parameters:
table
- the form table in which the type will be sets. (The table can not benull
).path
- the path participates at a choice of suitable type. Current path has to be actual forform
. The path can benull
.context
- the parental object in which there is a currenttable
. (Thenull
context value is valid). If current context does not support aTable
then throwsIllegalArgumentException
.form
- the form in which there are all objects.version
- the configuration version.
-
-