Class MdPropertyPaletteModel
java.lang.Object
com._1c.g5.aef2.validators.Validable
com._1c.g5.aef2.models.Model
com._1c.g5.properties.ui.PropertyPaletteModel
com._1c.g5.v8.dt.md.ui.properties.models.MdPropertyPaletteModel
- All Implemented Interfaces:
IModel
,IManagingModel
,IValidable
,IModelApiAwareModel
Implementation of
PropertyPaletteModel
containing EDT specific logic.-
Constructor Summary
ConstructorsConstructorDescriptionMdPropertyPaletteModel
(IBmModelManager modelManager, IResourceLookup resourceLookup, IEditingLanguageManager editingLanguageManager, IV8ProjectManager v8projectManager, IDerivedDataManagerProvider derivedDataManagerProvider, IEventBroker eventBroker, StandardObjectProxyFactory standardObjectProxyFactory, IProjectOperationApi projectOperationApi, IServicesOrchestrator servicesOrchestrator) Creates a new model. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
Clears model.Creates and returns a newly created rule input.void
dispose()
Disposes this model.Returns the model API.Returns the collection of objects that is edited by the managing component.Returns theIV8ProjectManager
instance.void
setComponent
(IComponent<?> component) Associate this model with the component.void
setModelApi
(IModelApi modelApi) Sets the specified API to the model.void
setSelection
(ISelection selection, Object... contexts) Sets the new selection.Methods inherited from class com._1c.g5.properties.ui.PropertyPaletteModel
adaptSelection, getChange, getDefinition, setDefinition, setSelection
Methods inherited from class com._1c.g5.aef2.models.Model
addModelListener, beginExternalUpdate, checkOffline, checkOnline, commit, createWorkingCopy, discard, endExternalUpdate, getComponent, getCurrentChangeOrigin, getRunnableQueue, isOnline, notifyModelChanged, notifyModelCommitted, removeModelListener, setOnline, toString
Methods inherited from class com._1c.g5.aef2.validators.Validable
addValidator, getValidatorTarget, 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.aef2.models.IModel
addModelListener, commit, createWorkingCopy, discard, getChange, getComponent, isOnline, removeModelListener
Methods inherited from interface com._1c.g5.aef2.validators.IValidable
addValidator, removeValidator, validate, validate
-
Constructor Details
-
MdPropertyPaletteModel
@Inject public MdPropertyPaletteModel(IBmModelManager modelManager, IResourceLookup resourceLookup, IEditingLanguageManager editingLanguageManager, IV8ProjectManager v8projectManager, IDerivedDataManagerProvider derivedDataManagerProvider, IEventBroker eventBroker, StandardObjectProxyFactory standardObjectProxyFactory, IProjectOperationApi projectOperationApi, IServicesOrchestrator servicesOrchestrator) Creates a new model.- Parameters:
modelManager
- theIBmModelManager
instance, cannot benull
.resourceLookup
- theIResourceLookup
instance, cannot benull
.editingLanguageManager
- theIEditingLanguageManager
instance, cannot benull
.v8projectManager
- theIV8ProjectManager
instance, cannot benull
.derivedDataManagerProvider
- theIDerivedDataManagerProvider
instance, cannot benull
.eventBroker
- theIEventBroker
instance, cannot benull
.standardObjectProxyFactory
- theStandardObjectProxyFactory
instance, cannot benull
.projectOperationApi
- theIProjectOperationApi
instance, cannot benull
.
-
-
Method Details
-
getServiceConsumers
- Returns:
- the collection of consumers, never
null
.
-
getV8projectManager
Returns theIV8ProjectManager
instance.- Returns:
- the
IV8ProjectManager
instance, nevetnull
.
-
setComponent
Description copied from interface:IModel
Associate this model with the component.- Specified by:
setComponent
in interfaceIModel
- Overrides:
setComponent
in classModel
- Parameters:
component
- the component to associate with.
-
dispose
public void dispose()Description copied from interface:IModel
Disposes this model. -
setSelection
Sets the new selection.- Parameters:
selection
- The selection, cannot benull
.contexts
- The context objects for selection, cannot benull
.
-
getSelectionPickerObjects
- Returns:
- collection of selection picker objects, never
null
.
-
getSelectedObjectModel
- Returns:
- the selected object model, never
null
.
-
getObjects
Description copied from interface:IManagingModel
Returns the collection of objects that is edited by the managing component.- Specified by:
getObjects
in interfaceIManagingModel
- Overrides:
getObjects
in classPropertyPaletteModel
- Returns:
- the collection of objects that is edited by the managing component, never
null
.
-
setModelApi
Description copied from interface:IModelApiAwareModel
Sets the specified API to the model.- Specified by:
setModelApi
in interfaceIModelApiAwareModel
- Parameters:
modelApi
- the API, can benull
.
-
getModelApi
Description copied from interface:IModelApiAwareModel
Returns the model API.- Specified by:
getModelApi
in interfaceIModelApiAwareModel
- Returns:
- the model API or
null
if it is not set.
-
createRuleInput
Description copied from interface:IManagingModel
Creates and returns a newly created rule input.- Specified by:
createRuleInput
in interfaceIManagingModel
- Overrides:
createRuleInput
in classPropertyPaletteModel
- Returns:
IRuleInput
instance, nevernull
.
-
clearModel
protected void clearModel()Description copied from class:PropertyPaletteModel
Clears model.- Overrides:
clearModel
in classPropertyPaletteModel
-