Interface IFormItemManagementService
- All Known Implementing Classes:
FormItemManagementService
public interface IFormItemManagementService
The Service of management of form items.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionaddAddition(FormItemContainer parent, int index, Form form, FormNewItemDescriptor itemDescriptor) The method addsAdditionto the index position of a parental container(FormItemContainer) also the method sets all necessary data(unique id, name and etc.).default AdditionaddAddition(FormItemContainer parent, Form form, FormNewItemDescriptor itemDescriptor) The method addsAdditionto the end of a parental container(FormItemContainer) also the method sets all necessary data( unique id, name and etc.).addButton(FormItemContainer parent, int index, Command command, AbstractDataPath path, Form form, FormNewItemDescriptor itemDescriptor) Add button with command and data path to parent index position.default ButtonaddButton(FormItemContainer parent, Command command, AbstractDataPath path, Form form, FormNewItemDescriptor itemDescriptor) Add default button to end of parentaddDecoration(FormItemContainer parent, int index, ManagedFormDecorationType type, Form form, FormNewItemDescriptor itemDescriptor) The method addsDecorationto the index position of a parental container(FormItemContainer) also the method sets all necessary data(unique id, name and etc.).default DecorationaddDecoration(FormItemContainer parent, Form form, FormNewItemDescriptor itemDescriptor) The method addsDecorationto the end of a parental container(FormItemContainer) also the method sets all necessary data( unique id, name and etc.).default DecorationaddDecoration(FormItemContainer parent, ManagedFormDecorationType type, Form form, FormNewItemDescriptor itemDescriptor) The method addsDecorationto the end of a parental container(FormItemContainer) also the method sets all necessary data( unique id, name and etc.).default FormFieldaddField(FormItemContainer parent, int index, Form form, FormNewItemDescriptor itemDescriptor) The method addsFormFieldto the index position of a parental container(FormItemContainer) also the method sets all necessary data( unique id, name and etc.).addField(FormItemContainer parent, AbstractDataPath path, int index, Form form, FormNewItemDescriptor itemDescriptor) The method addsFormFieldto the index position of a parental container(FormItemContainer) also the method sets all necessary data( unique id, name and etc.).default FormFieldaddField(FormItemContainer parent, AbstractDataPath path, Form form, FormNewItemDescriptor itemDescriptor) The method addsFormFieldto the end of a parental container(FormItemContainer) also the method sets all necessary data( unique id, name and etc.).default FormFieldaddField(FormItemContainer parent, Form form, FormNewItemDescriptor itemDescriptor) The method addsFormFieldto the end of a parental container(FormItemContainer) also the method sets all necessary data( unique id, name and etc.).addFieldWithTable(FormItemContainer parent, AbstractDataPath path, boolean createColumns, int index, Form form, FormNewItemDescriptor itemDescriptor) The method addsFormFieldto the index position of a parental container(FormItemContainer) also the method sets all necessary data (unique id, name and etc.).default FormFieldaddFieldWithTable(FormItemContainer parent, AbstractDataPath path, boolean createColumns, Form form, FormNewItemDescriptor itemDescriptor) The method addsFormFieldto the index position of a parental container(FormItemContainer) also the method sets all necessary data (unique id, name and etc.).addGroup(FormItemContainer parent, int index, ManagedFormGroupType type, Form form, FormNewItemDescriptor itemDescriptor) The method adds group to the index position of a parental container(FormItemContainer) also the method sets all necessary data( unique id, name and etc.).default FormGroupaddGroup(FormItemContainer parent, Form form, FormNewItemDescriptor itemDescriptor) The method adds group to the end of a parental container(FormItemContainer) also the method sets all necessary data( unique id, name and etc.).default FormGroupaddGroup(FormItemContainer parent, ManagedFormGroupType type, Form form, FormNewItemDescriptor itemDescriptor) The method addsFormGroupto the end of a parental container(FormItemContainer) also the method sets all necessary data( unique id, name and etc.).default TableaddTable(FormItemContainer parent, int index, Form form, FormNewItemDescriptor itemDescriptor) The method addsTableto the index position of a parental container(FormItemContainer) also the method sets all necessary data(unique id, name and etc.).addTable(FormVisualEntity parent, AbstractDataPath path, boolean createColumns, int index, Form form, FormNewItemDescriptor itemDescriptor) The method addsTableto the index position of a parental container(FormItemContainer) also the method sets all necessary data(unique id, name and etc.).default TableaddTable(FormVisualEntity parent, AbstractDataPath path, boolean createColumns, Form form, FormNewItemDescriptor itemDescriptor) The method addsTableto the end of a parental container(FormItemContainer) also the method sets all necessary data( unique id, name and etc.).default TableaddTable(FormVisualEntity parent, Form form, FormNewItemDescriptor itemDescriptor) The method addsTableto the end of a parental container(FormItemContainer) also the method sets all necessary data( unique id, name and etc.).addTableFieldsByDataPath(Table table, AbstractDataPath path, Form form, FormNewItemDescriptor itemDescriptor)
-
Field Details
-
LAST
static final int LAST- See Also:
-
-
Method Details
-
addButton
default Button addButton(FormItemContainer parent, Command command, AbstractDataPath path, Form form, FormNewItemDescriptor itemDescriptor) Add default button to end of parent- Parameters:
parent- in which added new buttoncommand- the command for button (Button#getCommandName())path- the data path is parameter of command, can benullform- the formitemDescriptor- the item descriptor, can benull- Returns:
- was added button, never
null
-
addButton
Button addButton(FormItemContainer parent, int index, Command command, AbstractDataPath path, Form form, FormNewItemDescriptor itemDescriptor) Add button with command and data path to parent index position.- Parameters:
parent- in which added a new button, cannot benullindex- the position of parentcommand- the command for button (Button#getCommandName())path- the data path is parameter of command, can benullform- the form, cannot benullitemDescriptor- the item descriptor, can benull- Returns:
- the added button, never
null
-
addGroup
default FormGroup addGroup(FormItemContainer parent, Form form, FormNewItemDescriptor itemDescriptor) The method adds group to the end of a parental container(FormItemContainer) also the method sets all necessary data( unique id, name and etc.). At addition to the group the suitable type and ext info will be set.- Parameters:
parent- the parental element to which the group will be added. The parent can not benull. ThrowsIllegalArgumentExceptionif the parent does not support group.form- the form in which there are all objects. The form can not benull.itemDescriptor- the item descriptor, can benull- Returns:
- a new group with the established actual data, never
null
-
addGroup
default FormGroup addGroup(FormItemContainer parent, ManagedFormGroupType type, Form form, FormNewItemDescriptor itemDescriptor) The method addsFormGroupto the end of a parental container(FormItemContainer) also the method sets all necessary data( unique id, name and etc.). At addition to the group the type and ext info will be set.- Parameters:
parent- the parental element to which the group will be added. The parent can not benull. ThrowsIllegalArgumentExceptionif the parent does not support group.type- the type which will be set to group. If type isnullthen sets the actual for current parameters type. If current type is not support, then throwsIllegalArgumentException.form- the form in which there are all objects. The form can not benull.itemDescriptor- the item descriptor, can benull- Returns:
- a new group with the established actual data, never
null
-
addGroup
FormGroup addGroup(FormItemContainer parent, int index, ManagedFormGroupType type, Form form, FormNewItemDescriptor itemDescriptor) The method adds group to the index position of a parental container(FormItemContainer) also the method sets all necessary data( unique id, name and etc.). At addition to the group the type and corresponding the extInfo will be set.- Parameters:
parent- the parental element to which the group will be added. The parent can not benull. ThrowsIllegalArgumentExceptionif the parent does not support group.index- of a position of a parental container in which the group will be added. If index out of bound in parental container, then throwsIndexOutOfBoundsException.type- the type which will be set to group. If type isnullthen sets the actual for current parameters type. If current type is not support, then throwsIllegalArgumentException.form- the form in which there are all objects. The form can not benull.itemDescriptor- the item descriptor, can benull- Returns:
- a new group with the established actual data, never
null
-
addField
default FormField addField(FormItemContainer parent, AbstractDataPath path, Form form, FormNewItemDescriptor itemDescriptor) The method addsFormFieldto the end of a parental container(FormItemContainer) also the method sets all necessary data( unique id, name and etc.). At addition to the field the suitable type and ext info will be set.- Parameters:
parent- the parental element to which the field will be added. The parent can not benull. ThrowsIllegalArgumentExceptionif the parent does not support field.path- the path to data depends on it form field type and ext info. If path isnullsets default type and ext info.form- the form in which there are all objects. The form can not benull.itemDescriptor- the item descriptor, can benull- Returns:
- a new field with the established actual data, never
null
-
addField
default FormField addField(FormItemContainer parent, Form form, FormNewItemDescriptor itemDescriptor) The method addsFormFieldto the end of a parental container(FormItemContainer) also the method sets all necessary data( unique id, name and etc.). At addition to the field the suitable type and ext info will be set.- Parameters:
parent- the parental element to which the field will be added. The parent can not benull. ThrowsIllegalArgumentExceptionif the parent does not support field.form- the form in which there are all objects. The form can not benull.itemDescriptor- the item descriptor, can benull- Returns:
- a new field with the established actual data, never
null
-
addField
FormField addField(FormItemContainer parent, AbstractDataPath path, int index, Form form, FormNewItemDescriptor itemDescriptor) The method addsFormFieldto the index position of a parental container(FormItemContainer) also the method sets all necessary data( unique id, name and etc.). At addition to the field the suitable type and ext info will be set.- Parameters:
parent- the parental element to which the field will be added. The parent can not benull. ThrowsIllegalArgumentExceptionif the parent does not support field.path- the path to data depends on it form field type and ext info. If path isnullsets default type and ext info.index- of a position of a parental container in which the field will be added. If index out of bound in parental container, then throwsIndexOutOfBoundsException.form- the form in which there are all objects. The form can not benull.itemDescriptor- the item descriptor, can benull- Returns:
- a new field with the established actual data, never
null
-
addField
default FormField addField(FormItemContainer parent, int index, Form form, FormNewItemDescriptor itemDescriptor) The method addsFormFieldto the index position of a parental container(FormItemContainer) also the method sets all necessary data( unique id, name and etc.). At addition to the field the suitable type and ext info will be set.- Parameters:
parent- the parental element to which the field will be added. The parent can not benull. ThrowsIllegalArgumentExceptionif the parent does not support field.index- of a position of a parental container in which the field will be added. If index out of bound in parental container, then throwsIndexOutOfBoundsException.form- the form in which there are all objects. The form can not benull.itemDescriptor- the item descriptor, can benull- Returns:
- a new field with the established actual data, never
null
-
addTable
default Table addTable(FormVisualEntity parent, AbstractDataPath path, boolean createColumns, Form form, FormNewItemDescriptor itemDescriptor) The method addsTableto the end of a parental container(FormItemContainer) also the method sets all necessary data( unique id, name and etc.). At addition to the table the suitable type and ext info will be set.- Parameters:
parent- the parental container to which the table will be added. The parent can not benull. ThrowsIllegalArgumentExceptionif the parent does not support table.path- the path to data depends on it form table ext info. If path isnullsets default ext info.createColumns- the flag for creation of the columns from childrenPropertyInfoof thepathPropertyInfo.form- the form in which there are all objects. The form can not benull.itemDescriptor- the item descriptor, can benull- Returns:
- a new table with the established actual data, never
null
-
addTable
The method addsTableto the end of a parental container(FormItemContainer) also the method sets all necessary data( unique id, name and etc.). At addition to the table the default type and ext info will be set.- Parameters:
parent- the parental container to which the table will be added. The parent can not benull. ThrowsIllegalArgumentExceptionif the parent does not support table.form- the form in which there are all objects. The form can not benull.itemDescriptor- the item descriptor, can benull- Returns:
- a new table with the established actual data, never
null
-
addTable
Table addTable(FormVisualEntity parent, AbstractDataPath path, boolean createColumns, int index, Form form, FormNewItemDescriptor itemDescriptor) The method addsTableto the index position of a parental container(FormItemContainer) also the method sets all necessary data(unique id, name and etc.). At addition to the table the suitable type and ext info will be set.- Parameters:
parent- the parental container to which the table will be added. The parent can not benull. ThrowsIllegalArgumentExceptionif the parent does not support table.path- the path to data depends on it form table ext info. If path isnullsets default ext info.createColumns- the flag for creation of the columns from childrenPropertyInfoof thepathPropertyInfo.index- of a position of a parental container in which the table will be added. If index out of bound in parental container, then throwsIndexOutOfBoundsException.form- the form in which there are all objects. The form can not benull.itemDescriptor- the item descriptor, can benull- Returns:
- a new table with the established actual data, never
null
-
addTable
default Table addTable(FormItemContainer parent, int index, Form form, FormNewItemDescriptor itemDescriptor) The method addsTableto the index position of a parental container(FormItemContainer) also the method sets all necessary data(unique id, name and etc.). At addition to the table the default type and ext info will be set.- Parameters:
parent- the parental container to which the table will be added. The parent can not benull. ThrowsIllegalArgumentExceptionif the parent does not support table.index- of a position of a parental container in which the table will be added. If index out of bound in parental container, then throwsIndexOutOfBoundsException.form- the form in which there are all objects. The form can not benull.itemDescriptor- the item descriptor, can benull- Returns:
- a new table with the established actual data, never
null
-
addTableFieldsByDataPath
List<FormField> addTableFieldsByDataPath(Table table, AbstractDataPath path, Form form, FormNewItemDescriptor itemDescriptor) - Parameters:
table- the table in which the field is added.path- the table pathform- the form in which there are all objects. The form can not benull.itemDescriptor- the item descriptor, can benull- Returns:
- a new adding fields, never
null
-
addFieldWithTable
default FormField addFieldWithTable(FormItemContainer parent, AbstractDataPath path, boolean createColumns, Form form, FormNewItemDescriptor itemDescriptor) The method addsFormFieldto the index position of a parental container(FormItemContainer) also the method sets all necessary data (unique id, name and etc.). In addition to the field the auto-table will be created and the suitable type and ext info will be set.- Parameters:
parent- the parental element to which the field will be added. The parent can not benull. ThrowsIllegalArgumentExceptionif the parent does not support field.path- the path to data depends on it form field type and ext info. If path isnullsets default type and ext info.createColumns- the flag for creation of the columns from childrenPropertyInfoof thepathPropertyInfo. parental container, then throwsIndexOutOfBoundsException.form- the form in which there are all objects. The form can not benull.itemDescriptor- the item descriptor, can benull- Returns:
- a new field with the contained table and established actual data, never
null
-
addFieldWithTable
FormField addFieldWithTable(FormItemContainer parent, AbstractDataPath path, boolean createColumns, int index, Form form, FormNewItemDescriptor itemDescriptor) The method addsFormFieldto the index position of a parental container(FormItemContainer) also the method sets all necessary data (unique id, name and etc.). In addition to the field the auto-table will be created and the suitable type and ext info will be set.- Parameters:
parent- the parental element to which the field will be added. The parent can not benull. ThrowsIllegalArgumentExceptionif the parent does not support field.path- the path to data depends on it form field type and ext info. If path isnullsets default type and ext info.createColumns- the flag for creation of the columns from childrenPropertyInfoof thepathPropertyInfo.index- of a position of a parental container in which the field will be added. If index out of bound in parental container, then throwsIndexOutOfBoundsException.form- the form in which there are all objects. The form can not benull.itemDescriptor- the item descriptor, can benull- Returns:
- a new field with the contained table and established actual data, never
null
-
addDecoration
default Decoration addDecoration(FormItemContainer parent, Form form, FormNewItemDescriptor itemDescriptor) The method addsDecorationto the end of a parental container(FormItemContainer) also the method sets all necessary data( unique id, name and etc.). At addition to the decoration the suitable type and ext info will be set- Parameters:
parent- the parental container to which the decoration will be added. The parent can not benull. ThrowsIllegalArgumentExceptionif the parent does not support a decoration.form- the form in which there are all objects. The form can not benull.itemDescriptor- the item descriptor, can benull- Returns:
- a new decoration with the established actual data, never
null
-
addDecoration
default Decoration addDecoration(FormItemContainer parent, ManagedFormDecorationType type, Form form, FormNewItemDescriptor itemDescriptor) The method addsDecorationto the end of a parental container(FormItemContainer) also the method sets all necessary data( unique id, name and etc.). At addition to the decoration the type and ext info will be set.- Parameters:
parent- the parental container to which the decoration will be added. The parent can not benull. ThrowsIllegalArgumentExceptionif the parent does not support a decoration.type- the type which will be set to decoration. If type isnullthen sets the actual for current parameters type. If current type is not support, then throwsIllegalArgumentException.form- the form in which there are all objects. The form can not benull.itemDescriptor- the item descriptor, can benull- Returns:
- a new decoration with the established actual data, never
null
-
addDecoration
Decoration addDecoration(FormItemContainer parent, int index, ManagedFormDecorationType type, Form form, FormNewItemDescriptor itemDescriptor) The method addsDecorationto the index position of a parental container(FormItemContainer) also the method sets all necessary data(unique id, name and etc.). At addition to the decoration the type and a corresponding ext info will be set.- Parameters:
parent- the parental container to which the decoration will be added. The parent can not benull. ThrowsIllegalArgumentExceptionif the parent does not support a decoration.index- of a position of a parental container in which the decoration will be added. If index out of bound in parental container, then throwsIndexOutOfBoundsException.type- the type which will be set to decoration. If type isnullthen sets the actual for current parameters type. If current type is not support, then throwsIllegalArgumentException.form- the form in which there are all objects. The form can not benull.itemDescriptor- the item descriptor, can benull- Returns:
- a new decoration with the established actual data, never
null
-
addAddition
default Addition addAddition(FormItemContainer parent, Form form, FormNewItemDescriptor itemDescriptor) The method addsAdditionto the end of a parental container(FormItemContainer) also the method sets all necessary data( unique id, name and etc.). At addition to the addition the suitable type and ext info will be set- Parameters:
parent- the parental container to which the addition will be added. The parent can not benull. ThrowsIllegalArgumentExceptionif the parent does not support an addition.form- the form in which there are all objects. The form can not benull.itemDescriptor- the item descriptor, can benull- Returns:
- an new addition with the established actual data, never
null
-
addAddition
Addition addAddition(FormItemContainer parent, int index, Form form, FormNewItemDescriptor itemDescriptor) The method addsAdditionto the index position of a parental container(FormItemContainer) also the method sets all necessary data(unique id, name and etc.). At addition to the addition the default type and ext info will be set.- Parameters:
parent- the parental container to which the addition will be added. The parent can not benull. ThrowsIllegalArgumentExceptionif the parent does not support an addition.index- of a position of a parental container in which the addition will be added. If index out of bound in parental container, then throwsIndexOutOfBoundsException.form- the form in which there are all objects. The form can not benull.itemDescriptor- the item descriptor, can benull- Returns:
- an new addition with the established actual data, never
null
-