Class BmTypeDescriptionModel
- java.lang.Object
-
- com._1c.g5.aef2.validators.Validable
-
- com._1c.g5.aef2.models.Model
-
- com._1c.g5.aef2.models.CompoundModel
-
- com._1c.g5.v8.dt.md.ui.aef.models.type.AbstractTypeDescriptionModel
-
- com._1c.g5.v8.dt.md.ui.aef.models.BmTypeDescriptionModel
-
- All Implemented Interfaces:
ICompoundModel
,IEditableModel
,IModel
,IValidable
,IModelApiAwareModel
,ITypeDescriptionModel
- Direct Known Subclasses:
BmEventSubscribtionSourceModel
,PredefinedItemTypeDescriptionModel
public class BmTypeDescriptionModel extends AbstractTypeDescriptionModel implements IModelApiAwareModel
The BMAbstractTypeDescriptionModel
implementation.
-
-
Field Summary
Fields Modifier and Type Field Description protected IModelEditingSupport
editingSupport
Model editing support.
-
Constructor Summary
Constructors Constructor Description BmTypeDescriptionModel(org.eclipse.emf.ecore.EObject parent, org.eclipse.emf.ecore.EObject parentContext, org.eclipse.emf.ecore.EReference feature, IV8Project v8project, IModelEditingSupport editingSupport)
Creates a new model.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected IBmTask<?>
createTypeDescriptionChangeTask(org.eclipse.emf.ecore.EObject parent, org.eclipse.emf.ecore.EStructuralFeature feature, TypeDescription valueToApply)
Creates anIBmTask
for changing type description.protected IValue<TypeDescription>
createTypeDescriptionModel(org.eclipse.emf.ecore.EObject parent, org.eclipse.emf.ecore.EReference feature)
Creates a newIValue
model ofTypeDescription
type.IModelApi
getModelApi()
Returns the model API.void
setModelApi(IModelApi modelApi)
Sets the specified API to the model.-
Methods inherited from class com._1c.g5.v8.dt.md.ui.aef.models.type.AbstractTypeDescriptionModel
buildTypeDescriptionValue, commit, createDialogModel, dispose, getBinaryFixed, getBinaryLength, getBinaryLengthMaximum, getBinaryLengthMinimum, getContextObject, getDateFractions, getFeature, getMultiItems, getNumberNonNegative, getNumberPrecision, getNumberPrecisionMaximum, getNumberPrecisionMinimum, getNumberScale, getNumberScaleMaximum, getNumberScaleMinimum, getParent, getParentContext, getScriptVariantProvider, getSingleTypeItem, getStringFixed, getStringLength, getStringLengthMaximum, getStringLengthMinimum, getTypeDescription, getTypeDescriptionInfo, getTypeInfo, getTypes, getV8project, isBinaryFixedEnabled, isDateFractionsEnabled, isEditable, isNumberPositiveEnabled, isNumberPositiveOnly, isStringFixedEnabled, refresh, resolveItem, setComponent, setEditable, setTypeFilter
-
Methods inherited from class com._1c.g5.aef2.models.CompoundModel
addModel, getChange, getModels, isOnline, validate
-
Methods inherited from class com._1c.g5.aef2.models.Model
addModelListener, beginExternalUpdate, checkOffline, checkOnline, createWorkingCopy, discard, endExternalUpdate, getComponent, getCurrentChangeOrigin, getRunnableQueue, notifyModelChanged, notifyModelCommitted, removeModelListener, setOnline, toString
-
Methods inherited from class com._1c.g5.aef2.validators.Validable
addValidator, getValidatorTarget, removeValidator, 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, dispose, getChange, getComponent, isOnline, removeModelListener, setComponent
-
Methods inherited from interface com._1c.g5.aef2.validators.IValidable
addValidator, removeValidator, validate, validate
-
-
-
-
Field Detail
-
editingSupport
protected final IModelEditingSupport editingSupport
Model editing support.
-
-
Constructor Detail
-
BmTypeDescriptionModel
public BmTypeDescriptionModel(org.eclipse.emf.ecore.EObject parent, org.eclipse.emf.ecore.EObject parentContext, org.eclipse.emf.ecore.EReference feature, IV8Project v8project, IModelEditingSupport editingSupport)
Creates a new model.- Parameters:
parent
- the parent object, cannot benull
parentContext
- parent context object, can benull
if there is no contextfeature
- the feature, cannot benull
v8project
- the V8 project, cannot benull
editingSupport
- is the model editing support, cannot benull
-
-
Method Detail
-
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.
-
createTypeDescriptionModel
protected IValue<TypeDescription> createTypeDescriptionModel(org.eclipse.emf.ecore.EObject parent, org.eclipse.emf.ecore.EReference feature)
Description copied from class:AbstractTypeDescriptionModel
Creates a newIValue
model ofTypeDescription
type.- Specified by:
createTypeDescriptionModel
in classAbstractTypeDescriptionModel
- Parameters:
parent
- the parent objectfeature
- the feature
-
createTypeDescriptionChangeTask
protected IBmTask<?> createTypeDescriptionChangeTask(org.eclipse.emf.ecore.EObject parent, org.eclipse.emf.ecore.EStructuralFeature feature, TypeDescription valueToApply)
Creates anIBmTask
for changing type description.- Parameters:
parent
- the parent object.feature
- the feature.valueToApply
- the newTypeDescription
value.- Returns:
- a newly created
IBmTask
.
-
-