Class CommandActionExtensionModel
java.lang.Object
com._1c.g5.aef2.validators.Validable
com._1c.g5.aef2.models.Model
com._1c.g5.aef2.models.EditableModel
com._1c.g5.aef2.models.value.Value<T>
com._1c.g5.aef2.models.pojo.PojoValue<String>
com._1c.g5.v8.dt.form.ui.properties.models.CommandActionModel
com._1c.g5.v8.dt.internal.form.ui.extension.properties.models.CommandActionExtensionModel
- All Implemented Interfaces:
IEditableModel
,IModel
,IValue<String>
,IValidable
,IModelApiAwareModel
,IFormValue<String,
,FormCommand> IHandlerModel<FormCommand>
,IHandlerExtensionModel<FormCommand>
public class CommandActionExtensionModel
extends CommandActionModel
implements IHandlerExtensionModel<FormCommand>
The
IHandlerExtensionModel
implementation for form command.-
Constructor Summary
ConstructorsConstructorDescriptionCommandActionExtensionModel
(Form form, FormCommand command, IBslModuleContentManagementService bslModuleContentManagementService, ExtendedMethodCallType callType, boolean exists, Version version) Constructor.CommandActionExtensionModel
(Form form, FormCommand command, IBslModuleContentManagementService bslModuleContentManagementService, Version version) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
clearCommandHandler
(FormCommand command) Clears a form command handler.boolean
exists()
Returns whether the handler already exists.Returns current handler call type of the selected event handler.void
Opens or creates the selected method in BSL module.protected void
setCommandHandler
(String handlerName, FormCommand command) Sets a form command handler with the provided handler name.Methods inherited from class com._1c.g5.v8.dt.form.ui.properties.models.CommandActionModel
executeCommand, getChange, getEvent, getForm, getHandlers, getModelApi, getSelection, processHandlerInBslModule, setModelApi
Methods inherited from class com._1c.g5.aef2.models.value.Value
addValueListener, createWorkingCopy, discard, dispose, get, getCommittedValue, getUncommittedValue, getValidatorTarget, isEqual, notifyValueChanged, queueNotifyValueChanged, removeValueListener, set, setCommittedValue, setUncommittedValue, setValue, toString
Methods inherited from class com._1c.g5.aef2.models.EditableModel
isEditable, setEditable
Methods inherited from class com._1c.g5.aef2.models.Model
addModelListener, beginExternalUpdate, checkOffline, checkOnline, commit, endExternalUpdate, getComponent, getCurrentChangeOrigin, getRunnableQueue, isOnline, notifyModelChanged, notifyModelCommitted, removeModelListener, setComponent, setOnline
Methods inherited from class com._1c.g5.aef2.validators.Validable
addValidator, removeValidator, validate, validate
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com._1c.g5.v8.dt.form.internal.ui.properties.models.IFormValue
getForm, getSelection
Methods inherited from interface com._1c.g5.v8.dt.form.ui.properties.models.IHandlerModel
getEvent, getHandlers, processHandlerInBslModule
Methods inherited from interface com._1c.g5.aef2.models.IModel
addModelListener, commit, discard, dispose, getChange, getComponent, isOnline, removeModelListener, setComponent
Methods inherited from interface com._1c.g5.v8.dt.aef2.IModelApiAwareModel
getModelApi, setModelApi
Methods inherited from interface com._1c.g5.aef2.validators.IValidable
addValidator, removeValidator, validate, validate
Methods inherited from interface com._1c.g5.aef2.models.value.IValue
addValueListener, createWorkingCopy, get, isEqual, removeValueListener, set
-
Constructor Details
-
CommandActionExtensionModel
public CommandActionExtensionModel(Form form, FormCommand command, IBslModuleContentManagementService bslModuleContentManagementService, Version version) Constructor.- Parameters:
form
- the parent form, cannot benull
command
- the form command, cannot benull
bslModuleContentManagementService
- theIBslModuleContentManagementService
, cannot benull
version
- actualVersion
of containingform
IV8Project
, cannot benull
-
CommandActionExtensionModel
public CommandActionExtensionModel(Form form, FormCommand command, IBslModuleContentManagementService bslModuleContentManagementService, ExtendedMethodCallType callType, boolean exists, Version version) Constructor.- Parameters:
form
- the parent form, cannot benull
command
- the form command, cannot benull
bslModuleContentManagementService
- theIBslModuleContentManagementService
, cannot benull
callType
- the call type to create model for, cannot benull
exists
- whether the command handler already existsversion
- actualVersion
of containingform
IV8Project
, cannot benull
-
-
Method Details
-
exists
public boolean exists()Description copied from interface:IHandlerExtensionModel
Returns whether the handler already exists.- Specified by:
exists
in interfaceIHandlerExtensionModel<FormCommand>
- Returns:
- whether the handler already exists
-
processHandlerInBslModule
Description copied from interface:IHandlerExtensionModel
Opens or creates the selected method in BSL module.- Specified by:
processHandlerInBslModule
in interfaceIHandlerExtensionModel<FormCommand>
- Parameters:
callType
- an event handler call type, cannot benull
-
getCallType
Description copied from interface:IHandlerExtensionModel
Returns current handler call type of the selected event handler. Can returnnull
.- Specified by:
getCallType
in interfaceIHandlerExtensionModel<FormCommand>
- Returns:
- a current handler call type of the selected event handler or
null
if none
-
setCommandHandler
Description copied from class:CommandActionModel
Sets a form command handler with the provided handler name.- Overrides:
setCommandHandler
in classCommandActionModel
- Parameters:
handlerName
- a handler name, cannot benull
command
- a form command to set handler, cannot benull
-
clearCommandHandler
Description copied from class:CommandActionModel
Clears a form command handler.- Overrides:
clearCommandHandler
in classCommandActionModel
- Parameters:
command
- a form command to clear handler, cannot benull
-