Class FormCommandManagementService
- java.lang.Object
-
- com._1c.g5.v8.dt.form.service.command.FormCommandManagementService
-
public class FormCommandManagementService extends Object
The service of management for a form command. Any manipulations has to happen to form commands of a form through this service.
-
-
Constructor Summary
Constructors Constructor Description FormCommandManagementService()
Creates a new management service
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addCommand(Form form, FormCommand command)
Adds a form command to the form.void
deleteCommand(FormCommand command, boolean removeRelated)
Remove the form command from a form which contains it.void
replaceFormExtensionCommand(IBmTransaction transaction, FormCommand srcCommand, Form form)
Replaces borrowed command in extension form to base (inherited) command
-
-
-
Method Detail
-
addCommand
public void addCommand(Form form, FormCommand command)
Adds a form command to the form. In time addition the unique name is set to the parameter.- Parameters:
form
- the form in which is added the a new command formcommand
- it is the added form command
-
replaceFormExtensionCommand
public void replaceFormExtensionCommand(IBmTransaction transaction, FormCommand srcCommand, Form form)
Replaces borrowed command in extension form to base (inherited) command- Parameters:
transaction
- bm transaction, cannot benull
srcCommand
- source command to be replaced, cannot benull
form
- model, cannot benull
-
deleteCommand
public void deleteCommand(FormCommand command, boolean removeRelated)
Remove the form command from a form which contains it.- Parameters:
command
- the removal form commandremoveRelated
- the flag setting rules removal of related objects. If it istrue
all related items will be removed, iffalse
then at all related items the reference to this form command will be cleared
-
-