Interface IFormItemTypeManagementService
-
- All Known Implementing Classes:
FormItemTypeManagementService
public interface IFormItemTypeManagementService
The service allowing to operate types ofFormItem
s.
-
-
Method Summary
All Methods Instance Methods Abstract 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
void setActualType(FormField field, AbstractDataPath path, FormItemContainer context, Form form, Version version)
Changes theFormField
type with the default if necessary or remains unchanged otherwise.- 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
void setDefaultType(FormField field, AbstractDataPath path, Form form, Version version)
Sets the default type for theFormField
.- 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
void setType(ManagedFormFieldType type, FormField field, AbstractDataPath path, FormItemContainer context, Form form, Version version)
Sets a type for theFormField
.- 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
- 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 theTable
.- 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
- Throws:
IllegalArgumentException
- if the context does not support table.
-
setActualType
void setActualType(Button button, FormItemContainer context)
Sets the compatible type for theButton
.- 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
- Throws:
IllegalArgumentException
- if the context does not support button.
-
setType
void setType(ManagedFormButtonType type, Button button, FormItemContainer context)
Sets a type for theButton
.- 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
- Throws:
IllegalArgumentException
- if the context does not support button.
-
setActualType
void setActualType(FormGroup group, FormItemContainer context, Version version)
Sets the compatible type for theFormGroup
.- 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
- Throws:
IllegalArgumentException
- if the context does not support group.
-
setType
void setType(ManagedFormGroupType type, FormGroup group, FormItemContainer context, Version version)
Sets a type for theFormGroup
.- 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
- Throws:
IllegalArgumentException
- if the context does not support group.
-
setActualType
void setActualType(Addition addition, FormItemContainer context, Version version)
Sets the compatible type for theAddition
.- 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
- Throws:
IllegalArgumentException
- if the context does not support addition.
-
setType
void setType(ManagedFormAdditionType type, Addition addition, FormItemContainer context, Version version)
Sets a type for theAddition
.- 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
- Throws:
IllegalArgumentException
- if the context does not support addition.
-
setActualType
void setActualType(Decoration decoration, FormItemContainer context, Version version)
Sets the compatible type for theDecoration
.- 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
- Throws:
IllegalArgumentException
- if the context does not support decoration.
-
setType
void setType(ManagedFormDecorationType type, Decoration decoration, FormItemContainer context, Version version)
Sets a type for theDecoration
.- 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
- Throws:
IllegalArgumentException
- if the context does not support decoration.
-
-