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
public class MdPropertyPaletteModel extends PropertyPaletteModel implements IModelApiAwareModel
Implementation ofPropertyPaletteModel
containing EDT specific logic.
-
-
Constructor Summary
Constructors Constructor Description MdPropertyPaletteModel(IBmModelManager modelManager, IResourceLookup resourceLookup, IEditingLanguageManager editingLanguageManager, IV8ProjectManager v8projectManager, IDerivedDataManagerProvider derivedDataManagerProvider, IEventBroker eventBroker, StandardObjectProxyFactory standardObjectProxyFactory, IProjectOperationApi projectOperationApi, IServicesOrchestrator servicesOrchestrator)
Creates a new model.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
clearModel()
Clears model.IRuleInput
createRuleInput()
Creates and returns a newly created rule input.void
dispose()
Disposes this model.IModelApi
getModelApi()
Returns the model API.Collection<Object>
getObjects()
Returns the collection of objects that is edited by the managing component.IValue<String>
getSelectedObjectModel()
Collection<String>
getSelectionPickerObjects()
Collection<IServiceConsumer<?>>
getServiceConsumers()
IV8ProjectManager
getV8projectManager()
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 Detail
-
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 Detail
-
getServiceConsumers
public Collection<IServiceConsumer<?>> getServiceConsumers()
- Returns:
- the collection of consumers, never
null
.
-
getV8projectManager
public IV8ProjectManager getV8projectManager()
Returns theIV8ProjectManager
instance.- Returns:
- the
IV8ProjectManager
instance, nevetnull
.
-
setComponent
public void setComponent(IComponent<?> component)
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
public void setSelection(ISelection selection, Object... contexts)
Sets the new selection.- Parameters:
selection
- The selection, cannot benull
.contexts
- The context objects for selection, cannot benull
.
-
getSelectionPickerObjects
public Collection<String> getSelectionPickerObjects()
- Returns:
- collection of selection picker objects, never
null
.
-
getSelectedObjectModel
public IValue<String> getSelectedObjectModel()
- Returns:
- the selected object model, never
null
.
-
getObjects
public Collection<Object> 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
public void setModelApi(IModelApi modelApi)
Description copied from interface:IModelApiAwareModel
Sets the specified API to the model.- Specified by:
setModelApi
in interfaceIModelApiAwareModel
- Parameters:
modelApi
- the API, can benull
.
-
getModelApi
public IModelApi 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
public IRuleInput 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
-
-