Class AbstractAddTask
- java.lang.Object
-
- com._1c.g5.v8.bm.integration.AbstractBmTask<org.eclipse.core.runtime.IStatus>
-
- com._1c.g5.v8.bm.integration.BmBasicTask
-
- com._1c.g5.v8.bm.integration.BmBasicTask2<FormItemContainer,Form>
-
- com._1c.g5.v8.dt.form.service.item.task.AbstractAddTask
-
- All Implemented Interfaces:
IBmTask<org.eclipse.core.runtime.IStatus>
- Direct Known Subclasses:
AddAdditionTask
,AddButtonTask
,AddDecorationTask
,AddFieldTask
,AddGroupTask
,AddTableTask
,AddUsualNotVisualGroup
public abstract class AbstractAddTask extends BmBasicTask2<FormItemContainer,Form>
The abstract task on adds of form item. This task usingIFormItemManagementService
for adds a new items.- See Also:
IFormItemManagementService
-
-
Field Summary
Fields Modifier and Type Field Description protected IFormItemManagementService
managementService
The service for add a new form itemstatic int
NO_INDEX
The adds new item to last position
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractAddTask(String taskName, FormItemContainer parent, int index, FormNewItemDescriptor itemDescriptor)
Constructor for initialize abstract task fields.protected
AbstractAddTask(String taskName, FormItemContainer parent, FormNewItemDescriptor itemDescriptor)
Constructor for initialize abstract task fields.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract org.eclipse.core.runtime.IStatus
add(Form form, FormItemContainer parent)
The method add newFormItem
protected abstract org.eclipse.core.runtime.IStatus
add(Form form, FormItemContainer parent, int index)
The method add newFormItem
protected static String
createTaskName(String itemName)
Creates a new task name.org.eclipse.core.runtime.IStatus
execute(FormItemContainer parent, Form form, org.eclipse.core.runtime.IProgressMonitor monitor)
protected FormNewItemDescriptor
getItemDescriptor()
Provides the item name-
Methods inherited from class com._1c.g5.v8.bm.integration.BmBasicTask2
execute
-
Methods inherited from class com._1c.g5.v8.bm.integration.BmBasicTask
execute, getTransaction
-
Methods inherited from class com._1c.g5.v8.bm.integration.AbstractBmTask
getId, getName, getServiceId
-
-
-
-
Field Detail
-
NO_INDEX
public static final int NO_INDEX
The adds new item to last position- See Also:
- Constant Field Values
-
managementService
@Inject protected IFormItemManagementService managementService
The service for add a new form item
-
-
Constructor Detail
-
AbstractAddTask
protected AbstractAddTask(String taskName, FormItemContainer parent, FormNewItemDescriptor itemDescriptor)
Constructor for initialize abstract task fields. By a call of this constructor the new form item will be added to the end of the parent.- Parameters:
taskName
- the task name. (The name can not benull
).parent
- the parental container for which the new item will be added. (The parent can not benull
).itemDescriptor
- the item descriptor, can benull
.
-
AbstractAddTask
protected AbstractAddTask(String taskName, FormItemContainer parent, int index, FormNewItemDescriptor itemDescriptor)
Constructor for initialize abstract task fields.- Parameters:
taskName
- the task name. (The name can not benull
).parent
- parent the parental container for which the new item will be added. (The parent can not benull
).index
- the position index to which will be added an item.itemDescriptor
- the item descriptor, can benull
.
-
-
Method Detail
-
execute
public org.eclipse.core.runtime.IStatus execute(FormItemContainer parent, Form form, org.eclipse.core.runtime.IProgressMonitor monitor)
- Specified by:
execute
in classBmBasicTask2<FormItemContainer,Form>
-
add
protected abstract org.eclipse.core.runtime.IStatus add(Form form, FormItemContainer parent)
The method add newFormItem
- Parameters:
form
- the form in which there are all objects.parent
- the parental element to which the field will be added.- Returns:
- the status of operation.
-
add
protected abstract org.eclipse.core.runtime.IStatus add(Form form, FormItemContainer parent, int index)
The method add newFormItem
- Parameters:
form
- the form in which there are all objects.parent
- the parental element to which the field will be added.index
- the position index to which will be added an item.- Returns:
- the status of operation.
-
getItemDescriptor
protected FormNewItemDescriptor getItemDescriptor()
Provides the item name- Returns:
- the item descriptor, can be
null
.
-
-