Package com._1c.g5.v8.dt.ui.aef.models
Class BmUnsettablePropertyFieldModel<T>
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.v8.dt.aef2.bm.models.BmValue<T>
com._1c.g5.v8.dt.ui.aef.models.BmUnsettablePropertyFieldModel<T>
- All Implemented Interfaces:
IAttribute<IBmObject,
,org.eclipse.emf.ecore.EStructuralFeature> IEditableModel
,IEmfAttribute<IBmObject>
,IModel
,IEmfValueAttribute<T,
,IBmObject> IValue<T>
,IValidable
,IModelApiAwareModel
,IUnsettablePropertyFieldModel<T,
IBmObject>
public class BmUnsettablePropertyFieldModel<T>
extends BmValue<T>
implements IUnsettablePropertyFieldModel<T,IBmObject>
AEF model for unsettable property field.
-
Constructor Summary
ConstructorsConstructorDescriptionBmUnsettablePropertyFieldModel
(org.eclipse.emf.ecore.EObject object, org.eclipse.emf.ecore.EStructuralFeature feature) Constructor ofBmUnsettablePropertyFieldModel
. -
Method Summary
Modifier and TypeMethodDescriptionvoid
dispose()
Disposes this model.Returns the set state model.boolean
Checks is set state model enable.protected void
setObjectValue
(org.eclipse.emf.ecore.EObject object, org.eclipse.emf.ecore.EStructuralFeature feature, T newValue) Sets the new value of the provided model object feature during the commit.
The method is invoked within the task, so the given objects have the relevant state (e.g. attached to transaction).Methods inherited from class com._1c.g5.v8.dt.aef2.bm.models.BmValue
adapt, createTask, getChange, getModelApi, getObject, getObjectValue, getProperty, processBmValueChange, setModelApi
Methods inherited from class com._1c.g5.aef2.models.value.Value
addValueListener, createWorkingCopy, discard, 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.aef2.models.IAttribute
getProperty
Methods inherited from interface com._1c.g5.aef2.models.IEditableModel
isEditable, setEditable
Methods inherited from interface com._1c.g5.aef2.models.IModel
addModelListener, commit, discard, getChange, getComponent, isOnline, removeModelListener, setComponent
Methods inherited from interface com._1c.g5.v8.dt.ui.aef.component.IUnsettablePropertyFieldModel
getObject
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
-
BmUnsettablePropertyFieldModel
public BmUnsettablePropertyFieldModel(org.eclipse.emf.ecore.EObject object, org.eclipse.emf.ecore.EStructuralFeature feature) Constructor ofBmUnsettablePropertyFieldModel
.- Parameters:
object
- the object, cannot benull
feature
- the object feature, cannot benull
-
-
Method Details
-
dispose
public void dispose()Description copied from interface:IModel
Disposes this model. -
getSetStateModel
Description copied from interface:IUnsettablePropertyFieldModel
Returns the set state model.- Specified by:
getSetStateModel
in interfaceIUnsettablePropertyFieldModel<T,
IBmObject> - Returns:
- the set state model, cannot be
null
-
isSetStateEditable
public boolean isSetStateEditable()Description copied from interface:IUnsettablePropertyFieldModel
Checks is set state model enable.- Specified by:
isSetStateEditable
in interfaceIUnsettablePropertyFieldModel<T,
IBmObject> - Returns:
true
if enable.
-
setObjectValue
protected void setObjectValue(org.eclipse.emf.ecore.EObject object, org.eclipse.emf.ecore.EStructuralFeature feature, T newValue) Description copied from class:BmValue
Sets the new value of the provided model object feature during the commit.
The method is invoked within the task, so the given objects have the relevant state (e.g. attached to transaction).- Overrides:
setObjectValue
in classBmValue<T>
- Parameters:
object
- the object to set new value, cannot benull
.feature
- the feture to set, cannot benull
.newValue
- the new value to set, can benull
.
-