Class StandardObjectSwitchingSourceValue<T,M extends IValue<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.v8.dt.md.ui.aef.models.StandardObjectSwitchingSourceModel<M>
-
- com._1c.g5.v8.dt.md.ui.aef.models.StandardObjectSwitchingSourceValue<T,M>
-
- All Implemented Interfaces:
IEditableModel
,IModel
,IValue<T>
,IValidable
,IModelApiAwareModel
- Direct Known Subclasses:
StandardObjectTypeLinkModel
,StandardObjectValueModel
,StandardObjectValueSelectionModel
public class StandardObjectSwitchingSourceValue<T,M extends IValue<T>> extends StandardObjectSwitchingSourceModel<M> implements IValue<T>
The value model implementation forStandardObjectSwitchingSourceModel
.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com._1c.g5.v8.dt.md.ui.aef.models.StandardObjectSwitchingSourceModel
StandardObjectSwitchingSourceModel.IStandardAttributeModelCreator<T extends IModel>
-
-
Constructor Summary
Constructors Constructor Description StandardObjectSwitchingSourceValue(StandardObjectProxy proxy, org.eclipse.emf.ecore.EObject object, org.eclipse.emf.ecore.EStructuralFeature feature, StandardObjectSwitchingSourceModel.IStandardAttributeModelCreator<M> emfModelCreator, StandardObjectSwitchingSourceModel.IStandardAttributeModelCreator<M> bmModelCreator)
The constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addValueListener(IValueListener<T> listener)
Adds the value listener.IValue<T>
createWorkingCopy()
T
get()
boolean
isEqual(T other)
Checks the value for equality with the current stored value.void
removeValueListener(IValueListener<T> listener)
Removes the value listener.void
set(T value)
-
Methods inherited from class com._1c.g5.v8.dt.md.ui.aef.models.StandardObjectSwitchingSourceModel
dispose, getChange, getModelApi, getProxy, getWrappedModel, isOnline, setModelApi
-
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, discard, endExternalUpdate, getComponent, getCurrentChangeOrigin, getRunnableQueue, notifyModelChanged, notifyModelCommitted, removeModelListener, setComponent, 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, discard, dispose, getChange, getComponent, isOnline, removeModelListener, setComponent
-
Methods inherited from interface com._1c.g5.aef2.validators.IValidable
addValidator, removeValidator, validate, validate
-
-
-
-
Constructor Detail
-
StandardObjectSwitchingSourceValue
public StandardObjectSwitchingSourceValue(StandardObjectProxy proxy, org.eclipse.emf.ecore.EObject object, org.eclipse.emf.ecore.EStructuralFeature feature, StandardObjectSwitchingSourceModel.IStandardAttributeModelCreator<M> emfModelCreator, StandardObjectSwitchingSourceModel.IStandardAttributeModelCreator<M> bmModelCreator)
The constructor.- Parameters:
proxy
- theStandardObjectProxy
object, cannot benull
.object
- theStandardAttribute
instance, cannot benull
.feature
- the feature, cannot benull
.emfModelCreator
- the EMF modelStandardObjectSwitchingSourceModel.IStandardAttributeModelCreator
instance, cannot benull
.bmModelCreator
- the BM modelStandardObjectSwitchingSourceModel.IStandardAttributeModelCreator
instance, cannot benull
.
-
-
Method Detail
-
set
public void set(T value)
-
isEqual
public boolean isEqual(T other)
Description copied from interface:IValue
Checks the value for equality with the current stored value.
-
createWorkingCopy
public IValue<T> createWorkingCopy()
- Specified by:
createWorkingCopy
in interfaceIModel
- Specified by:
createWorkingCopy
in interfaceIValue<T>
- Overrides:
createWorkingCopy
in classModel
- Returns:
- the model working copy or
null
if working copies is not supported by the model.
-
addValueListener
public void addValueListener(IValueListener<T> listener)
Description copied from interface:IValue
Adds the value listener.- Specified by:
addValueListener
in interfaceIValue<T>
- Parameters:
listener
- the listener to add.
-
removeValueListener
public void removeValueListener(IValueListener<T> listener)
Description copied from interface:IValue
Removes the value listener.- Specified by:
removeValueListener
in interfaceIValue<T>
- Parameters:
listener
- the listener to remove.
-
-