Class StandardObjectValueModel
- 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<Value,IValueModel>
-
- com._1c.g5.v8.dt.md.ui.aef.models.StandardObjectValueModel
-
- All Implemented Interfaces:
IEditableModel
,IModel
,IValue<Value>
,IValidable
,IModelApiAwareModel
,IValueModel
public class StandardObjectValueModel extends StandardObjectSwitchingSourceValue<Value,IValueModel> implements IValueModel
TheIValueModel
instance for standard attributes.
-
-
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 StandardObjectValueModel(StandardObjectProxy proxy, org.eclipse.emf.ecore.EObject object, org.eclipse.emf.ecore.EStructuralFeature feature, IV8Project v8project)
The constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IColorProvider
getColorProvider()
TypeItem
getCurrentTypeItem()
Returns the currentTypeItem
.IFontProvider
getFontProvider()
org.eclipse.emf.ecore.EObject
getObject()
Returns value property object.TypeDescription
getTypeDescription()
Returns theTypeDescription
of the object that keeps theValue
.IValue<TypeItem>
getTypeItemModel()
Returns the model ofTypeItem
.IV8Project
getV8project()
Returns the {@link IV8Project).-
Methods inherited from class com._1c.g5.v8.dt.md.ui.aef.models.StandardObjectSwitchingSourceValue
addValueListener, createWorkingCopy, get, isEqual, removeValueListener, set
-
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
-
Methods inherited from interface com._1c.g5.aef2.models.value.IValue
addValueListener, createWorkingCopy, get, isEqual, removeValueListener, set
-
Methods inherited from interface com._1c.g5.v8.dt.md.ui.aef.models.value.IValueModel
convertTypeItemToValue
-
-
-
-
Constructor Detail
-
StandardObjectValueModel
public StandardObjectValueModel(StandardObjectProxy proxy, org.eclipse.emf.ecore.EObject object, org.eclipse.emf.ecore.EStructuralFeature feature, IV8Project v8project)
The constructor.- Parameters:
proxy
- theStandardAttributeProxy
object, cannot benull
.object
- theStandardAttribute
instance, cannot benull
.feature
- the feature, cannot benull
.v8project
- the V8 project, cannot benull
-
-
Method Detail
-
getTypeDescription
public TypeDescription getTypeDescription()
Description copied from interface:IValueModel
Returns theTypeDescription
of the object that keeps theValue
.- Specified by:
getTypeDescription
in interfaceIValueModel
- Returns:
- the
TypeDescription
instance.
-
getTypeItemModel
public IValue<TypeItem> getTypeItemModel()
Description copied from interface:IValueModel
Returns the model ofTypeItem
. It is the changeable model that can be changed from component, i.e. in case the user select the type from type selection dialog, or can be changed in automatically in case if theTypeDescription
was changed.- Specified by:
getTypeItemModel
in interfaceIValueModel
- Returns:
- the model of
TypeItem
, cannot benull
-
getCurrentTypeItem
public TypeItem getCurrentTypeItem()
Description copied from interface:IValueModel
Returns the currentTypeItem
. It is calculated object that is depends on current state ofIValueModel.getTypeItemModel()
andIValueModel.getTypeDescription()
.- Specified by:
getCurrentTypeItem
in interfaceIValueModel
- Returns:
- the current
TypeItem
.
-
getObject
public org.eclipse.emf.ecore.EObject getObject()
Description copied from interface:IValueModel
Returns value property object.- Specified by:
getObject
in interfaceIValueModel
- Returns:
- the value property object.
-
getV8project
public IV8Project getV8project()
Description copied from interface:IValueModel
Returns the {@link IV8Project).- Specified by:
getV8project
in interfaceIValueModel
- Returns:
- the v8 project.
-
getColorProvider
public IColorProvider getColorProvider()
- Specified by:
getColorProvider
in interfaceIValueModel
- Returns:
- the color provider, can be
null
-
getFontProvider
public IFontProvider getFontProvider()
- Specified by:
getFontProvider
in interfaceIValueModel
- Returns:
- the font provider, can be
null
-
-