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)
Sets the compatible type for theAddition
.void
setActualType(Button button, FormItemContainer context)
Sets the compatible type for theButton
.void
setActualType(Decoration decoration, FormItemContainer context, Version version)
Sets the compatible type for theDecoration
.void
setActualType(FormField field, AbstractDataPath path, FormItemContainer context, Form form, Version version)
Changes theFormField
type with the default if necessary or remains unchanged otherwise.void
setActualType(FormGroup group, FormItemContainer context, Version version)
Sets the compatible type for theFormGroup
.void
setActualType(Table table, AbstractDataPath path, FormItemContainer context, Form form, Version version)
Sets the compatible type for theTable
.void
setDefaultType(FormField field, AbstractDataPath path, Form form, Version version)
Sets the default type for theFormField
.void
setType(ManagedFormAdditionType type, Addition addition, FormItemContainer context, Version version)
Sets a type for theAddition
.void
setType(ManagedFormButtonType type, Button button, FormItemContainer context)
Sets a type for theButton
.void
setType(ManagedFormDecorationType type, Decoration decoration, FormItemContainer context, Version version)
Sets a type for theDecoration
.void
setType(ManagedFormFieldType type, FormField field, AbstractDataPath path, FormItemContainer context, Form form, Version version)
Sets a type for theFormField
.void
setType(ManagedFormGroupType type, FormGroup group, FormItemContainer context, Version version)
Sets a type for theFormGroup
.
-
-
-
Method Detail
-
setActualType
public void setActualType(FormField field, AbstractDataPath path, FormItemContainer context, Form form, Version version)
Changes theFormField
type with the default if necessary or remains unchanged otherwise.- Specified by:
setActualType
in interfaceIFormItemTypeManagementService
- Parameters:
field
- the form field in which the compatible type will be set, cannot benull
path
- the path participates at a choice of compatible type, can benull
context
- the parental object in which there is a currentfield
, can benull
form
- the form in which there are all objects, cannot benull
version
- the configuration version, cannot benull
-
setDefaultType
public void setDefaultType(FormField field, AbstractDataPath path, Form form, Version version)
Sets the default type for theFormField
.- Specified by:
setDefaultType
in interfaceIFormItemTypeManagementService
- Parameters:
field
- the form field in which the default type will be set, cannot benull
path
- the path participates at a choice of default type, can benull
form
- the form in which there are all objects, can benull
version
- the configuration version, cannot benull
-
setType
public void setType(ManagedFormFieldType type, FormField field, AbstractDataPath path, FormItemContainer context, Form form, Version version)
Sets a type for theFormField
.- Specified by:
setType
in interfaceIFormItemTypeManagementService
- Parameters:
type
- the type which will be set, cannot benull
field
- the form field in which the type will be set, cannot benull
path
- the path participates at a choice of compatible type, can benull
context
- the parental object in which there is a currentfield
, can benull
form
- the form in which there are all objects, cannot benull
version
- the configuration version, cannot benull
-
setActualType
public void setActualType(Button button, FormItemContainer context)
Sets the compatible type for theButton
.- Specified by:
setActualType
in interfaceIFormItemTypeManagementService
- Parameters:
button
- the form button in which the type will be set, cannot benull
context
- the parental object in which there is a currentbutton
, can benull
-
setType
public void setType(ManagedFormButtonType type, Button button, FormItemContainer context)
Sets a type for theButton
.- Specified by:
setType
in interfaceIFormItemTypeManagementService
- Parameters:
type
- the type which will be set, cannot benull
button
- the form button in which the type will be set, cannot benull
context
- the parental object in which there is a currentbutton
, can benull
-
setActualType
public void setActualType(FormGroup group, FormItemContainer context, Version version)
Sets the compatible type for theFormGroup
.- Specified by:
setActualType
in interfaceIFormItemTypeManagementService
- Parameters:
group
- the form group in which the type will be set, cannot benull
context
- the parental object in which there is a currentgroup
, can benull
version
- the configuration version, cannot benull
-
setType
public void setType(ManagedFormGroupType type, FormGroup group, FormItemContainer context, Version version)
Sets a type for theFormGroup
.- Specified by:
setType
in interfaceIFormItemTypeManagementService
- Parameters:
type
- the type which will be set, cannot benull
group
- the form group in which the type will be set, cannot benull
context
- the parental object in which there is a currentgroup
, can benull
version
- the configuration version, cannot benull
-
setActualType
public void setActualType(Addition addition, FormItemContainer context, Version version)
Sets the compatible type for theAddition
.- Specified by:
setActualType
in interfaceIFormItemTypeManagementService
- Parameters:
addition
- the form addition in which the type will be set, cannot benull
context
- the parental object in which there is a currentaddition
, can benull
version
- the configuration version, cannot benull
-
setType
public void setType(ManagedFormAdditionType type, Addition addition, FormItemContainer context, Version version)
Sets a type for theAddition
.- Specified by:
setType
in interfaceIFormItemTypeManagementService
- Parameters:
type
- the type which will be set, cannot benull
addition
- the form addition in which the type will be set, cannot benull
context
- the parental object in which there is a currentaddition
, can benull
version
- the configuration version, cannot benull
-
setActualType
public void setActualType(Decoration decoration, FormItemContainer context, Version version)
Sets the compatible type for theDecoration
.- Specified by:
setActualType
in interfaceIFormItemTypeManagementService
- Parameters:
decoration
- the form decoration in which the type will be set, cannot benull
context
- the parental object in which there is a currentdecoration
, can benull
version
- the configuration version, cannot benull
-
setType
public void setType(ManagedFormDecorationType type, Decoration decoration, FormItemContainer context, Version version)
Sets a type for theDecoration
.- Specified by:
setType
in interfaceIFormItemTypeManagementService
- Parameters:
type
- the type which will be set, cannot benull
decoration
- the form decoration in which the type will be set, cannot benull
context
- the parental object in which there is a currentdecoration
, can benull
version
- the configuration version, cannot benull
-
setActualType
public void setActualType(Table table, AbstractDataPath path, FormItemContainer context, Form form, Version version)
Sets the compatible type for theTable
.- Specified by:
setActualType
in interfaceIFormItemTypeManagementService
- Parameters:
table
- the form table in which the type will be set, cannot benull
path
- the path participates at a choice of compatible type.context
- the parental object in which there is a currenttable
, can benull
form
- the form in which there are all objects, cannot benull
version
- the configuration version, cannot benull
-
-