Class AddButtonTask
- 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
-
- com._1c.g5.v8.dt.form.service.item.task.AddButtonTask
-
- All Implemented Interfaces:
IBmTask<org.eclipse.core.runtime.IStatus>
public class AddButtonTask extends AbstractAddTask
The task creates a new button and insert in parent
-
-
Field Summary
-
Fields inherited from class com._1c.g5.v8.dt.form.service.item.task.AbstractAddTask
managementService, NO_INDEX
-
-
Constructor Summary
Constructors Constructor Description AddButtonTask(FormItemContainer parent)
Creates a new task.AddButtonTask(FormItemContainer parent, int index)
Creates a new task.AddButtonTask(FormItemContainer parent, int index, FormNewItemDescriptor itemDescriptor)
Creates a new task.AddButtonTask(FormItemContainer parent, int index, Command command)
Creates a new task.AddButtonTask(FormItemContainer parent, int index, Command command, AbstractDataPath path)
Creates a new task.AddButtonTask(FormItemContainer parent, int index, Command command, AbstractDataPath path, FormNewItemDescriptor itemDescriptor)
Creates a new task.AddButtonTask(FormItemContainer parent, int index, Command command, FormNewItemDescriptor itemDescriptor)
Creates a new task.AddButtonTask(FormItemContainer parent, FormNewItemDescriptor itemDescriptor)
Creates a new task.AddButtonTask(FormItemContainer parent, Command command)
Creates a new task.AddButtonTask(FormItemContainer parent, Command command, AbstractDataPath path)
Creates a new BM Task.AddButtonTask(FormItemContainer parent, Command command, AbstractDataPath path, FormNewItemDescriptor itemDescriptor)
Creates a new BM Task.AddButtonTask(FormItemContainer parent, Command command, FormNewItemDescriptor itemDescriptor)
Creates a new task.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.eclipse.core.runtime.IStatus
add(Form form, FormItemContainer parent)
The method add newFormItem
protected org.eclipse.core.runtime.IStatus
add(Form form, FormItemContainer parent, int index)
The method add newFormItem
-
Methods inherited from class com._1c.g5.v8.dt.form.service.item.task.AbstractAddTask
createTaskName, execute, getItemDescriptor
-
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
-
-
-
-
Constructor Detail
-
AddButtonTask
public AddButtonTask(FormItemContainer parent)
Creates a new task. Create default button and insert to last position in parent;- Parameters:
parent
- the parent
-
AddButtonTask
public AddButtonTask(FormItemContainer parent, FormNewItemDescriptor itemDescriptor)
Creates a new task. Create default button and insert to last position in parent;- Parameters:
parent
- the parentitemDescriptor
- the item descriptor, can benull
-
AddButtonTask
public AddButtonTask(FormItemContainer parent, Command command)
Creates a new task. Create button with command and insert to last position in parent;- Parameters:
parent
- the parentcommand
- the command set to button command name (Button#getCommandName()
)
-
AddButtonTask
public AddButtonTask(FormItemContainer parent, Command command, FormNewItemDescriptor itemDescriptor)
Creates a new task. Create button with command and insert to last position in parent;- Parameters:
parent
- the parentcommand
- the command set to button command name (Button#getCommandName()
)itemDescriptor
- the item descriptor, can benull
-
AddButtonTask
public AddButtonTask(FormItemContainer parent, Command command, AbstractDataPath path)
Creates a new BM Task. Create button with a command and a data path after insert to last position in parent;- Parameters:
parent
- the parentcommand
- the command set to button command name (Button#getCommandName()
)path
- the path set to button data pathButton#getDataPath()
-
AddButtonTask
public AddButtonTask(FormItemContainer parent, Command command, AbstractDataPath path, FormNewItemDescriptor itemDescriptor)
Creates a new BM Task. Create button with a command and a data path after insert to last position in parent;- Parameters:
parent
- the parentcommand
- the command set to button command name (Button#getCommandName()
)path
- the path set to button data pathButton#getDataPath()
itemDescriptor
- the item descriptor, can benull
-
AddButtonTask
public AddButtonTask(FormItemContainer parent, int index)
Creates a new task. Create button insert to index position in parent;- Parameters:
parent
- the parentindex
- position in parent
-
AddButtonTask
public AddButtonTask(FormItemContainer parent, int index, FormNewItemDescriptor itemDescriptor)
Creates a new task. Create button insert to index position in parent;- Parameters:
parent
- the parentindex
- position in parentitemDescriptor
- the item descriptor, can benull
-
AddButtonTask
public AddButtonTask(FormItemContainer parent, int index, Command command)
Creates a new task. Create button with command insert to index position in parent;- Parameters:
parent
- the parentindex
- position in parentcommand
- the command set to button command name (Button#getCommandName()
)
-
AddButtonTask
public AddButtonTask(FormItemContainer parent, int index, Command command, FormNewItemDescriptor itemDescriptor)
Creates a new task. Create button with command insert to index position in parent;- Parameters:
parent
- the parentindex
- position in parentcommand
- the command set to button command name (Button#getCommandName()
)itemDescriptor
- the item descriptor, can benull
-
AddButtonTask
public AddButtonTask(FormItemContainer parent, int index, Command command, AbstractDataPath path)
Creates a new task. Create button with a command and a data path insert to index position in parent;- Parameters:
parent
- the parentindex
- position in parentcommand
- the command set to button command name (Button#getCommandName()
)path
- the path set to button data pathButton#getDataPath()
-
AddButtonTask
public AddButtonTask(FormItemContainer parent, int index, Command command, AbstractDataPath path, FormNewItemDescriptor itemDescriptor)
Creates a new task. Create button with a command and a data path insert to index position in parent;- Parameters:
parent
- the parentindex
- position in parentcommand
- the command set to button command name (Button#getCommandName()
)path
- the path set to button data pathButton#getDataPath()
itemDescriptor
- the item descriptor, can benull
-
-
Method Detail
-
add
protected org.eclipse.core.runtime.IStatus add(Form form, FormItemContainer parent)
Description copied from class:AbstractAddTask
The method add newFormItem
- Specified by:
add
in classAbstractAddTask
- 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 org.eclipse.core.runtime.IStatus add(Form form, FormItemContainer parent, int index)
Description copied from class:AbstractAddTask
The method add newFormItem
- Specified by:
add
in classAbstractAddTask
- 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.
-
-