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 TypeMethodDescriptionvoiddispose()Disposes this model.Returns the set state model.booleanChecks is set state model enable.protected voidsetObjectValue(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, setModelApiMethods 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, toStringMethods inherited from class com._1c.g5.aef2.models.EditableModel
isEditable, setEditableMethods inherited from class com._1c.g5.aef2.models.Model
addModelListener, beginExternalUpdate, checkOffline, checkOnline, commit, endExternalUpdate, getComponent, getCurrentChangeOrigin, getRunnableQueue, isOnline, notifyModelChanged, notifyModelCommitted, removeModelListener, setComponent, setOnlineMethods inherited from class com._1c.g5.aef2.validators.Validable
addValidator, removeValidator, validate, validateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com._1c.g5.aef2.models.IAttribute
getPropertyMethods inherited from interface com._1c.g5.aef2.models.IEditableModel
isEditable, setEditableMethods inherited from interface com._1c.g5.aef2.models.IModel
addModelListener, commit, discard, getChange, getComponent, isOnline, removeModelListener, setComponentMethods inherited from interface com._1c.g5.v8.dt.ui.aef.component.IUnsettablePropertyFieldModel
getObjectMethods inherited from interface com._1c.g5.aef2.validators.IValidable
addValidator, removeValidator, validate, validateMethods 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 benullfeature- the object feature, cannot benull
-
-
Method Details
-
dispose
public void dispose()Description copied from interface:IModelDisposes this model. -
getSetStateModel
Description copied from interface:IUnsettablePropertyFieldModelReturns the set state model.- Specified by:
getSetStateModelin interfaceIUnsettablePropertyFieldModel<T,IBmObject> - Returns:
- the set state model, cannot be
null
-
isSetStateEditable
public boolean isSetStateEditable()Description copied from interface:IUnsettablePropertyFieldModelChecks is set state model enable.- Specified by:
isSetStateEditablein interfaceIUnsettablePropertyFieldModel<T,IBmObject> - Returns:
trueif enable.
-
setObjectValue
protected void setObjectValue(org.eclipse.emf.ecore.EObject object, org.eclipse.emf.ecore.EStructuralFeature feature, T newValue) Description copied from class:BmValueSets 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:
setObjectValuein 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.
-